Inspectopedia Help

Duplicate case in switch statement

Reports duplicate case expressions in switch statements.

If a switch statement contains multiple duplicate case expressions, only the first one is executed.

Inspection Details

Available in:

PhpStorm 2023.3, Qodana for PHP 2023.3

Plugin:

PHP, 233.SNAPSHOT

Last modified: 13 July 2023