PhpStorm 2019.2 Help

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

Reports unnecessary switch statements. Warns on switch statement with an empty body, only one case branch, or only single default branch.

Last modified: 23 August 2019