format/control-flow/no-break-comment
In the format-psr12 preset. Safe fix.
What it does
There must be a comment when fall-through is intentional in a non-empty case body.
Configuration
[format.rules]
"control-flow/no-break-comment" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
comment-text |
string |
Any | "no break" |
comment_text |
Replaces
no_break_comment(php-cs-fixer)