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 left side of null coalescing operator is not null then right side will never be used. PHPStan should alert it.
https://phpstan.org/r/19e311df-cf34-4cb2-8d38-92e8bbe8d8bd
PHPStan should say something like "Variable $foo always exists and is not nullable."
The text was updated successfully, but these errors were encountered:
Implemented: phpstan/phpstan-src#36 (https://phpstan.org/r/ed8211b1-f4b0-4bf6-ac05-d3821fd5512e)
Sorry, something went wrong.
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
Summary of a problem or a feature request
If left side of null coalescing operator is not null then right side will never be used.
PHPStan should alert it.
Code snippet that reproduces the problem
https://phpstan.org/r/19e311df-cf34-4cb2-8d38-92e8bbe8d8bd
Expected output
PHPStan should say something like "Variable $foo always exists and is not nullable."
The text was updated successfully, but these errors were encountered: