Skip to content

Conversation

@tomcorbett
Copy link
Contributor

ResultPager breaks because no array is returned (it's an empty string) - issue ResultPager::get() can return string #1091

…h breaks ResultPager because no array is returned (it's an empty string) - issue ResultPager::get() can return string KnpLabs#1091
Copy link
Collaborator

@acrobat acrobat left a 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

@tomcorbett
Copy link
Contributor Author

@acrobat - of course, apologies, I haven't written a unit test in probably 10 years... so I apologize if this is wrong

Copy link
Collaborator

@acrobat acrobat left a 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 👌

@acrobat acrobat merged commit 61b478a into KnpLabs:master Mar 24, 2024
@acrobat
Copy link
Collaborator

acrobat commented Mar 24, 2024

Thanks @tomcorbett! And congrats on your first contribution! 🎉

@tomcorbett
Copy link
Contributor Author

Awesome, thank you @acrobat !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants