analyse/dead-code/while-always-true
In the analyse-recommended preset and every stricter one. Report only.
Configuration
[analyse.rules]
"dead-code/while-always-true" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
WhileLoopAlwaysTrueConditionRule(phpstan-classes)while.alwaysTrue(phpstan)