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
https://phpstan.org/r/531108ab-4b3a-4354-bb59-36261cc64140
in phpstan 0.12.31, this odd behaviour... I don't understand why it works when returning directly vs assigning to a variable.
Neither case should report an error because the array is definitely non-empty.
The text was updated successfully, but these errors were encountered:
Fixed by: phpstan/phpstan-src#333
Sorry, something went wrong.
Updated PHPStan to commit 5ef1f3a
8644c20
phpstan/phpstan-src@ae26b54 Fix type inference in assignment with side-effects phpstan/phpstan-src@81b2385 Add test for fixed bug #3875 phpstan/phpstan-src@f32a30f Add test for fixed bug #2611 phpstan/phpstan-src@5ef1f3a Add test for fixed bug #3548
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
Code snippet that reproduces the problem
https://phpstan.org/r/531108ab-4b3a-4354-bb59-36261cc64140
in phpstan 0.12.31, this odd behaviour... I don't understand why it works when returning directly vs assigning to a variable.
Expected output
Neither case should report an error because the array is definitely non-empty.
The text was updated successfully, but these errors were encountered: