You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phpstan/phpstan-src#333 should fix this. However PHPStan will still (correctly) report that the if-condition is always false. The do-while-loop will only ever execute once, thus the comparison will always be 'asd' === null.
Bug report (version 0.12.42)
If you have a queue with single item in it, phpstan seems to think that array_pop() returns null.
Code snippet that reproduces the problem
https://phpstan.org/r/57010e6f-71f7-4b56-9e14-e6b55b87cf47
Output
Line 10: Unreachable statement - code above always terminates.
Expected output
No error
The text was updated successfully, but these errors were encountered: