Skip to content

Commit 8b9ac12

Browse files
authored
Typo
1 parent 629de05 commit 8b9ac12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/currentuser/memberships.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

1414
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.
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

0 commit comments

Comments
 (0)