lint/control-flow/no-switch-continue
In the lint-recommended preset and every stricter one. In Rector’s rector/php52 set. Safe fix.
What it does
Switch case must not be ended with continue but with break.
Configuration
[lint.rules]
"control-flow/no-switch-continue" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
switch_continue_to_break(php-cs-fixer)ContinueToBreakInSwitch(rector)switch-continue-to-break(mago-linter)