-
-
Notifications
You must be signed in to change notification settings - Fork 913
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
After upgrade to 0.12.78 #4577
Comments
Hi, I'm pretty sure this haven't changed in 0.12.78, just verified when running this locally. It's very possible that the type inference got smarter in 0.12.78 and your variable is now of type Can you provide a piece of code that you verify locally passing on 0.12.77 and failing on 0.12.78? |
Anyway, I just wrote a little extension that makes PHPStan understand this code anyway: phpstan/phpstan-src@d3b5d60 |
@ondrejmirtes I actually runned phpstan on 0.12.77 and 0.12.78 it threw error only on 0.12.78. |
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
After upgrading to 0.12.78 looks like
$request is being recognized as object instead of BaseRequest,
159 Call to an undefined method object::whatever().
works well on 0.12.77 and does not report this error.
Code snippet that reproduces the problem
https://phpstan.org/r/e1fc69b5-0542-4286-9d52-c85234392b07
ignore the first error, second one is problem
Expected output
no issue here
The text was updated successfully, but these errors were encountered: