Skip to content

Commit 8371af8

Browse files
committed
Fix the documentation for the PR API
1 parent d890eec commit 8371af8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/pull_requests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Wraps [GitHub Pull Request API](http://developer.github.com/v3/pulls/).
1515
```php
1616
<?php
1717

18-
$openPullRequests = $client->api('pull_request')->all('ezsystems', 'ezpublish', 'open');
18+
$openPullRequests = $client->api('pull_request')->all('ezsystems', 'ezpublish', array('state' => 'open'));
1919
```
2020

21-
The last parameter of the listPullRequests method default to 'open'. The call above is equivalent to:
21+
The state parameter of the listPullRequests method default to 'open'. The call above is equivalent to:
2222

2323
```php
2424
<?php
@@ -33,7 +33,7 @@ $openPullRequests = $client->api('pull_request')->all('ezsystems', 'ezpublish');
3333
```php
3434
<?php
3535

36-
$closedPullRequests = $client->api('pull_request')->all('ezsystems', 'ezpublish', 'closed');
36+
$closedPullRequests = $client->api('pull_request')->all('ezsystems', 'ezpublish', array('state' => 'closed'));
3737
```
3838

3939
``$closedPullRequests`` contains an array of closed pull-requests for this repository.

0 commit comments

Comments
 (0)