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
If I assign a condition in a variable or in a method, phpstan brings me up a false error, I think.
https://phpstan.org/r/488425af-8e61-453e-b327-1084560a8b3d
https://phpstan.org/r/470bbfe6-0518-4ea2-ae05-68742135bae6
The only difference between theses two links is on line 54:
-if (!$case) { +if (!$parent) {
The text was updated successfully, but these errors were encountered:
@roukmoute After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -58: Cannot call method getData() on MyInterface|null. +No errors
Sorry, something went wrong.
Fixed: phpstan/phpstan-src@56ae015
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
Bug report
If I assign a condition in a variable or in a method, phpstan brings me up a false error, I think.
Code snippet that reproduces the problem
https://phpstan.org/r/488425af-8e61-453e-b327-1084560a8b3d
Expected output
https://phpstan.org/r/470bbfe6-0518-4ea2-ae05-68742135bae6
The only difference between theses two links is on line 54:
The text was updated successfully, but these errors were encountered: