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
PHPStan - PHP Static Analysis Tool 0.12.84
PHPStan says that the else is unreachable, I say it is.
https://phpstan.org/r/adffe5b9-8174-41b6-a774-b988dbfd0165
No warnings
The text was updated successfully, but these errors were encountered:
The root issue here is that isset($_SESSION) should be bool and not true: https://phpstan.org/r/905e0f11-19d7-42d9-b3c4-b176c21d0aaa
isset($_SESSION)
bool
true
Sorry, something went wrong.
@yphoenix After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -15: Else branch is unreachable because previous condition is always true. +No errors
@ondrejmirtes After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ - 9: Dumped type: true -17: Else branch is unreachable because previous condition is always true. + 9: Dumped type: bool
Dumped type: bool
phpstan/phpstan-src@c17a331
Thank you.
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
PHPStan - PHP Static Analysis Tool 0.12.84
PHPStan says that the else is unreachable, I say it is.
Code snippet that reproduces the problem
https://phpstan.org/r/adffe5b9-8174-41b6-a774-b988dbfd0165
Expected output
No warnings
The text was updated successfully, but these errors were encountered: