-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
False positove Variable might not be defined. #11044
Comments
Why do you not just check if |
Yes code can be simplified and phpstan can understand it better even in our codebase. Thanks for push to this way. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
In attached snippet is code which use one variable as a boolean flag if another variable is set. But PHPStan ignores this flag.
Code snippet that reproduces the problem
https://phpstan.org/r/320b10b5-ad0a-43a3-889d-8114fbc27ead
Expected output
No errors
Did PHPStan help you today? Did it make you happy in any way?
Today? Many times! Thanks.
The text was updated successfully, but these errors were encountered: