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

Update return type of spl_autoload_functions on PHP8.0+ #2810

Open
wants to merge 1 commit into
base: 1.10.x
Choose a base branch
from

Conversation

ManuelHu
Copy link
Contributor

@ManuelHu ManuelHu commented Dec 8, 2023

The documentation states that spl_autoload_functions might only return false on PHP versions up to 7.4; it will return an empty array on PHP8+.

The PHP8.x stubs already have the (only) correct native return type array specified - with this change the functionMap type should be a subtype of it.

The documentation states that spl_autoload_functions might only return
false on PHP versions up to 7.4; it will return an empty array on PHP8+.
@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.

@ManuelHu ManuelHu changed the base branch from 1.11.x to 1.10.x December 8, 2023 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants