diff --git a/doc/issues.md b/doc/issues.md index 67ff9556a4b..e2804277d35 100644 --- a/doc/issues.md +++ b/doc/issues.md @@ -38,7 +38,7 @@ Returns an array of information about the issue. > Requires [authentication](security.md). ```php -$client->api('issue')->create('KnpLabs', 'php-github-api', array('title' => 'The issue title', 'body' => 'The issue body'); +$client->api('issue')->create('KnpLabs', 'php-github-api', array('title' => 'The issue title', 'body' => 'The issue body')); ``` Creates a new issue in the repo "php-github-api" of the user "KnpLabs". The issue is assigned to the authenticated user.