Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #1132 Fix type error in ResultPager::fetch (nunoplopes)
This PR was merged into the 3.14-dev branch. Discussion ---------- When using etags, the reply from github may be empty and the underlying APIs will return an empty string. We need to flip those to empty arrays. e.g.: ```php $github_builder ->addPlugin(new Http\Client\Common\Plugin\HeaderSetPlugin([ 'If-None-Match' => $etag, ])); $api = $github_client->user('user'); $paginator = new \Github\ResultPager($github_client); $data = $paginator->fetch($api, 'events', [$username]); // $data should be [] if $etag is the latest ``` Commits ------- 773747a Fix type error in ResultPager::fetch
- Loading branch information