class Simplabs::Excellent::Checks::CaseMissingElseCheck

This check reports case statements that don’t have an else clause that would be executed when no case matches. If the tested value will never adopt any other values than the ones tested for in the cases, this should be expressed in the code by e.g. throwing an exception in the else clause.

Applies to