-
-
Notifications
You must be signed in to change notification settings - Fork 863
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 positive: if ($city ?? false) #560
Comments
Hi, |
Thanks, that makes sense but wasn't included in the OP. Should be easy to fix. |
I re-run the example, and the output is a bit different |
@lyrixx PHPStan now reports different result with your code snippet: @@ @@
-3: If condition is always false.
-4: Undefined variable: $city
+4: Variable $city might not be defined. Full report
|
@lyrixx After the latest commit in dev-master, PHPStan now reports different result with your code snippet: @@ @@
-3: If condition is always false.
-4: Undefined variable: $city
+No errors |
Fixed: phpstan/phpstan-src@c4cc668 |
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. |
Hello.
There is a false positive here:
=> var $citiy is undefined
Thanks.
The text was updated successfully, but these errors were encountered: