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
Parameter $object of method expects T of object, T of object|T of object given. #5893
Comments
Friendly ping @ondrejmirtes, any idea where should I look at in the phpstan-src code for this bug ? |
@VincentLanglet The type in Which means this is about what happens in MutatingScope::filterByFalseyValue(). |
I have difficulties to debug this, but I discovered that Dunno if it helps |
Seems like this was solved in 1.4.4 |
@ondrejmirtes Do you know if it was expected to be solved by a recent PR ? |
Yes, I'll add a regression test. |
Closes phpstan/phpstan#5893 Closes phpstan/phpstan#6070 Closes phpstan/phpstan#5869 Closes phpstan/phpstan#6212 Closes phpstan/phpstan#6262 Closes phpstan/phpstan#6266 Closes phpstan/phpstan#6023 Closes phpstan/phpstan#6108 Closes phpstan/phpstan#6020 Closes phpstan/phpstan#1746 Closes phpstan/phpstan#1516 Closes phpstan/phpstan#6174 Closes phpstan/phpstan#6112 Closes phpstan/phpstan#5749 Closes phpstan/phpstan#5969 Closes phpstan/phpstan#5295 Closes phpstan/phpstan#5675 Closes phpstan/phpstan#5369 Closes phpstan/phpstan#6699 Closes phpstan/phpstan#6505
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
I'm starting using the 1.0 version and I have a weird issue.
Code snippet that reproduces the problem
https://phpstan.org/r/bf359dd0-d44c-4b4d-9916-75e450c344fa
Removing the
fix the issue.
Expected output
No error
Did PHPStan help you today? Did it make you happy in any way?
Great job for the 1.0
The text was updated successfully, but these errors were encountered: