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
infer type via isset condition #10088
Comments
Alright, I looked into this in detail and this is what I found out. The fact that before it didn't report an error was a happy accident and actually a bug because revertNonNullability restored the expression with wrong certainty. We need to make PHPStan understand what |
I managed to fix this on top of your PR with this commit: phpstan/phpstan-src@c1310c4 |
Thanks! |
Should be re-opened because of revert |
Fixed: phpstan/phpstan-src#2710 |
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. |
Feature request
no error in https://phpstan.org/r/d4d3024d-f355-4d05-968d-d7cc6a2e1dcf
found while investigating phpstan/phpstan-src#2666 (comment)
The text was updated successfully, but these errors were encountered: