File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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/#
88> Requires [ authentication] ( ../security.md ) .
99
1010``` php
11- $memberships = $client->user ()->memberships()->all();
11+ $memberships = $client->currentUser ()->memberships()->all();
1212```
1313
1414Returns 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.
1818> Requires [ authentication] ( ../security.md ) .
1919
2020``` php
21- $membership = $client->user ()->memberships()->organization('KnpLabs');
21+ $membership = $client->currentUser ()->memberships()->organization('KnpLabs');
2222```
2323* ` KnpLabs ` : the organization
2424
@@ -29,7 +29,7 @@ Returns an array of one membership in a specific organization.
2929> Requires [ authentication] ( ../security.md ) .
3030
3131``` php
32- $membership = $client->user ()->memberships()->edit('KnpLabs');
32+ $membership = $client->currentUser ()->memberships()->edit('KnpLabs');
3333```
3434* ` KnpLabs ` : the organization
3535
You can’t perform that action at this time.
0 commit comments