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