A case with statements falls through into the next case

tx0/php:switch-fallthroughrecommendedwarningreliability/control-flowdepth fastbug

What it finds

A case with statements that runs on into the next case because it ends without break, return, continue, throw or exit: often a forgotten break. A comment that says the fall-through is meant, or an empty case that shares the next one's statements, is left alone.

From the rule's source, switch_fallthrough.rs.

Turn it on, off or suppress it

The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/php:switch-fallthrough" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/php:switch-fallthrough] reason="..."

tx0 explain tx0/php:switch-fallthrough shows the same in the terminal. Found a false positive? Report it.