-
-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle case of GitHub returning 204 No Content in some scenarios #1135
Conversation
…h breaks ResultPager because no array is returned (it's an empty string) - issue ResultPager::get() can return string KnpLabs#1091
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomcorbett thanks for the PR! Can you also add a test for this to avoid any regressions in the future? Thanks!
See: https://github.com/KnpLabs/php-github-api/blob/master/test/Github/Tests/ResultPagerTest.php
@acrobat - of course, apologies, I haven't written a unit test in probably 10 years... so I apologize if this is wrong |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries @tomcorbett, test looks good 👌
Thanks @tomcorbett! And congrats on your first contribution! 🎉 |
Awesome, thank you @acrobat !! |
ResultPager breaks because no array is returned (it's an empty string) - issue ResultPager::get() can return string #1091