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