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
A negated Boolean in a loop is used to oscillate between true and false on each iteration of the loop. PHPStan claims the expression is always false. This causes subsequent false positives in conditionals.
Bug report
A negated Boolean in a loop is used to oscillate between true and false on each iteration of the loop. PHPStan claims the expression is always false. This causes subsequent false positives in conditionals.
Code snippet that reproduces the problem
https://phpstan.org/r/7fffa805-d6b5-4397-a927-9b651294c76d
Expected output
No error.
The loop will ensure that the value changes on each iteration.
Did PHPStan help you today? Did it make you happy in any way?
I love this tool!
The text was updated successfully, but these errors were encountered: