Skip to content

Commit ab0752a

Browse files
committed
changed current_user watch repo method
1 parent af276bc commit ab0752a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/users.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ For authenticated user use.
119119
> Requires [authentication](security.md).
120120
121121
```php
122-
$users = $client->api('current_user')->watched();
122+
$users = $client->api('current_user')->watchers()->all();
123123
```
124124

125125
Returns an array of watched repos.

lib/Github/Api/CurrentUser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ public function watchers()
112112
{
113113
return new Watchers($this->client);
114114
}
115-
115+
116+
/**
117+
* @Deprecated
118+
*/
116119
public function watched($page = 1)
117120
{
118121
return $this->get('user/watched', array(

0 commit comments

Comments
 (0)