I am wondering if I should include break
in my switch even if a case is throwing an exception.
switch ($key) {
case self::ABC:
case self::CBA:
if (!is_string($key)) {
throw new Exception('Well.. this should be a string my friend');
}
break;
}
Am I even getting to the break? I do not think so, so why should I include it? Does it makes sense?