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
When doing an isset before setting a key in an array phpstan will think the key is always set, but only if a 'child' array is set within that
https://phpstan.org/r/f66b9fc9-d92f-4a7e-aa1b-34483e6cf92c
I'd expect both functions to not have any errors, but the first function has a failure.
The text was updated successfully, but these errors were encountered:
Thank you. This bug has been haunting me for some time, but I've never seen it formulated in a minimized example.
Sorry, something went wrong.
@BackEndTea After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -10: Strict comparison using === between true and false will always evaluate to false. +No errors
phpstan/phpstan-src@c17a331
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
When doing an isset before setting a key in an array phpstan will think the key is always set, but only if a 'child' array is set within that
Code snippet that reproduces the problem
https://phpstan.org/r/f66b9fc9-d92f-4a7e-aa1b-34483e6cf92c
Expected output
I'd expect both functions to not have any errors, but the first function has a failure.
The text was updated successfully, but these errors were encountered: