format/control-flow/switch-case-colon
In the format-laravel and format-psr12 presets. Safe fix.
What it does
A case should be followed by a colon and not a semicolon.
Configuration
[format.rules]
"control-flow/switch-case-colon" = true
To skip it in some files, add a @pun-ignore-file comment.
Replaces
switch_case_semicolon_to_colon(php-cs-fixer)ColonAfterSwitchCase(rector)deprecated-switch-semicolon(mago-linter)