Closed jbrooksuk closed 7 years ago
For the checks within PHPCheckstyle, I've just put @SuppressWarnings
where needed.
From my brief look through the switch handling, I'm pretty sure that PHPCheckstyle.php
is already accounting for this, but it's just not working? Is this correct @tchule?
I don't remember having handled this case. We can say that a case
need a break, except when it is an empty case.
I think that's a good way of doing it, but so long as it's empty & followed by another case
.
When a
select
orswitch
has multiple cases that join together:The
The case statement must contain a break.
warning is being returned. We need to add a check on thecase
token that it's not immediately followed by anothercase
.