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
checkExplicitMixed - hardcoded functions in NodeScopeResolver like array_map and array_filter expect wrong callable #5609
Comments
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review. |
Fixed: phpstan/phpstan-src@ca7deb3 |
I'm still seeing the same bogus errors on PM with 0.12.99, e.g. https://github.com/pmmp/PocketMine-MP/pull/4457/checks?check_run_id=3585690922#step:10:9 |
@dktapps It's fixed if you enable bleedingEdge. |
Is the fix that disruptive? Ouch ... |
The fix accidentally implements this which can be considered a new rule (many new errors reported in existing codebases): #1954 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
Code like this:
fails with:
Because the reflection layer is unaware of the "genericness".
Code snippet that reproduces the problem
checkExplicitMixed not yet supported on phpstan.org
Expected output
No errors
The text was updated successfully, but these errors were encountered: