Skip to content

Commit ec7da6e

Browse files
committed
Use remove method for repo delete
Calling delete on an instance of Repo calls delete from the parent class. The parent class delete method doesn't expect the arguments being passed in the format the old example uses. Example should use `remove` instead of `delete`.
1 parent dfc9ea0 commit ec7da6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/repos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Updates and returns the repository named 'my-new-repo' that is owned by 'usernam
7676
> Requires [authentication](security.md).
7777
7878
```php
79-
$client->api('repo')->delete('username', 'my-new-repo'); // Get the deletion token
79+
$client->api('repo')->remove('username', 'my-new-repo'); // Get the deletion token
8080
```
8181

8282
Deletes the my-new-repo repository.

0 commit comments

Comments
 (0)