php-github-api
php-github-api copied to clipboard
Fix TypeError in ResultPager
Fixes https://github.com/KnpLabs/php-github-api/issues/1091
Not sure if this is the best fix, if it is not, would love guidance on a better one.
Can someone take a look at this PR? Is this project abandoned?
Hi @iwiznia, thanks for the PR! I'm not sure if this is the "right" fix as we hide the actual error by returning an empty array. I don't understand why the httpClient call doesn't throw an exception (through our GithubExceptionThrower
plugin in case of this 500 error.
So for me the fix would rather be to check why there is no exception thrown on this error, something that can be catched by the application and a retry can be executed. Instead of an empty array that could just mean there is no data.
wdyt @iwiznia?