We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
for (;;) { $a = "hello"; break; } echo $a;
Expected: No issue Actual: Variable $a might not be defined.
https://phpstan.org/r/19b1ac30-50b8-404b-9da8-9b1a3b6f90b1
The text was updated successfully, but these errors were encountered:
The equivalent while(true) code works fine: https://phpstan.org/r/3dfa4f4f-a9c5-4d73-b29a-a98ebbfd8680
while(true)
Sorry, something went wrong.
@muglug After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -8: Variable $a might not be defined. +No errors
phpstan/phpstan-src@ebfe7cf
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.
No branches or pull requests
Expected: No issue
Actual: Variable $a might not be defined.
https://phpstan.org/r/19b1ac30-50b8-404b-9da8-9b1a3b6f90b1
The text was updated successfully, but these errors were encountered: