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

#347 fixes deprecation warning with PHP 8.1 #349

Merged
merged 1 commit into from Feb 1, 2022

Conversation

garethellis36
Copy link
Contributor

I haven't been able to run test suite on this because I don't have PHP 5.x installed... ha.

The issue raised in #347 is because $out was set to false and PHP now issues a deprecation notice if you try to implicitly convert a bool to an array. To fix this, I changed $out to being initialized as an empty array, and then at the end of the method, returned false to preserve BC if the array was still empty.

@greenlion greenlion merged commit b4ac026 into greenlion:master Feb 1, 2022
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.

None yet

2 participants