PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Code Inspection: 'switch' statement is redundant and can be replaced

Last modified: 21 March 2023

Reports a switch statement with an empty body, or with only one case branch, or with a default branch only.