Skip to content
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

return empty array if there are no todo pages #150

Merged
merged 1 commit into from Feb 22, 2023

Conversation

EmTeedee
Copy link
Contributor

Calling function expects an array.
Returning an empty array instead of null saves a null check and also makes sense when reasoning about the function.

Fixes #145

Calling function expects an array.
Returning an empty array instead of null saves a null check and also makes sense when reasoning about the function.
@einhirn einhirn merged commit f15a6e4 into leibler:master Feb 22, 2023
@einhirn
Copy link
Collaborator

einhirn commented Feb 22, 2023

Thanks, I'll update the plugin version etc. I'll try to add a catch all attribution to the plugins description, so people get pointed to contributors - if that's OK for you.

@EmTeedee
Copy link
Contributor Author

Totally fine, I'm just happy to get some warnings out of our logs :-)

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.

PHP 8 Warning: argument must be of type array|object, null given
2 participants