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

Do not consider arrays with an unknown class string to be a callback #1404

Merged
merged 1 commit into from Jun 8, 2022

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Jun 7, 2022

Closes phpstan/phpstan#7389

E.g. ['', ''] was considered to be an unknown callable which messes up UnusedPrivateMethodRuleTest. I was not sure about this, I guess if people only scan parts of their code, this could turn out to be a problem? But as this is considered bad-practice anyways, maybe this is fine.
Let me know if I missed something.

@herndlm
Copy link
Contributor Author

herndlm commented Jun 7, 2022

I wanted to write callable in the title. Not callback! xD

@herndlm herndlm marked this pull request as ready for review June 7, 2022 16:24
@ondrejmirtes
Copy link
Member

Nice, thank you :)

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