From 8b9ac127688c36a10737fcbc8e10bba4882ba40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 11 Mar 2018 00:12:48 -0300 Subject: [PATCH] Typo --- doc/currentuser/memberships.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/currentuser/memberships.md b/doc/currentuser/memberships.md index 989766bc254..53ee81eb96e 100644 --- a/doc/currentuser/memberships.md +++ b/doc/currentuser/memberships.md @@ -8,7 +8,7 @@ Wraps [GitHub Issue Comments API](https://developer.github.com/v3/orgs/members/# > Requires [authentication](../security.md). ```php -$memberships = $client->user()->memberships()->all(); +$memberships = $client->currentUser()->memberships()->all(); ``` 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. > Requires [authentication](../security.md). ```php -$membership = $client->user()->memberships()->organization('KnpLabs'); +$membership = $client->currentUser()->memberships()->organization('KnpLabs'); ``` * `KnpLabs` : the organization @@ -29,7 +29,7 @@ Returns an array of one membership in a specific organization. > Requires [authentication](../security.md). ```php -$membership = $client->user()->memberships()->edit('KnpLabs'); +$membership = $client->currentUser()->memberships()->edit('KnpLabs'); ``` * `KnpLabs` : the organization