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

Check autoload functions before callback #11948

Closed
wants to merge 4 commits into from

Conversation

barryvdh
Copy link
Sponsor Contributor

Check the autoload functions before and after. Unset the ones added during callback. Refs #11940

@barryvdh
Copy link
Sponsor Contributor Author

The return signature is changed in PHP8.0; https://www.php.net/manual/en/function.spl-autoload-functions.php

8.0.0 Return value was updated to always be an array; previously this function returned false if the autoload queue wasn't activated.

In our case we are pretty sure that it is set, but not sure what the best way is to make phpstan happy here for 7.2 and 8.1

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

1 participant