Inspectopedia
 
2024.3

Unused 'switch' branch

Info
New
Last modified: 03 December 2024

Reports the branches in switch statements that do not belong to the set of enum cases and as a result are never executed.

See Enumerations (php.net) for details.