File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Wraps [GitHub Issue Comments API](https://developer.github.com/v3/orgs/members/#
8
8
> Requires [ authentication] ( ../security.md ) .
9
9
10
10
``` php
11
- $memberships = $client->user ()->memberships()->all();
11
+ $memberships = $client->currentUser ()->memberships()->all();
12
12
```
13
13
14
14
Returns an array of your memberships in all organizations you are part of.
@@ -18,7 +18,7 @@ Returns an array of your memberships in all organizations you are part of.
18
18
> Requires [ authentication] ( ../security.md ) .
19
19
20
20
``` php
21
- $membership = $client->user ()->memberships()->organization('KnpLabs');
21
+ $membership = $client->currentUser ()->memberships()->organization('KnpLabs');
22
22
```
23
23
* ` KnpLabs ` : the organization
24
24
@@ -29,7 +29,7 @@ Returns an array of one membership in a specific organization.
29
29
> Requires [ authentication] ( ../security.md ) .
30
30
31
31
``` php
32
- $membership = $client->user ()->memberships()->edit('KnpLabs');
32
+ $membership = $client->currentUser ()->memberships()->edit('KnpLabs');
33
33
```
34
34
* ` KnpLabs ` : the organization
35
35
You can’t perform that action at this time.
0 commit comments