analyse/control-flow/non-boolean-while
In the analyse-strict preset and every stricter one. Report only. Upstream gates: strictRules.booleansInLoopConditions + bleedingEdge.
Configuration
[analyse.rules]
"control-flow/non-boolean-while" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
BooleanInWhileConditionRule(phpstan-classes)while.condNotBoolean(phpstan-strict-rules)