lint/complexity/no-constant-condition
In the dead-code set. Safe fix.
What it does
Detects if statements where the condition is a constant that always
Configuration
[lint.rules]
"complexity/no-constant-condition" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
RemoveDeadIfBlock(rector)constant-condition(mago-linter)