New issue
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
array_shift() is not understood #2611
Comments
I think related to #1723, #1722. @szepeviktor since you're a contributor, you may be able to fix these bugs. Happy to help you – I've had this working in Psalm for a while. |
Closing favor of #1723 |
These are two separate issues I think. One involves general arrays and the other literal arrays. |
Fixed by: phpstan/phpstan-src#333 |
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
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. |
Bug report
I think
$item
contains$collection
which is not null.Code snippet that reproduces the problem
https://phpstan.org/r/3e7005bc-8e9c-4955-bacd-f6dad8b11ff0
Expected output
[OK] No errors
The text was updated successfully, but these errors were encountered: