I have found myself in a situation where a switch case fall-through is the best option. By this I mean:
switch($bar)
{
case 0:
// do something
case 1:
// do more
break;
//more cases
}
Currently my IDE (phpStorm) is throwing a warning about the fall-through.
Is there an accepted way in phpDoc to document such intended fall-through?
n.b. I'm aware that some of you will undoubtedly say not to do this but I subscribe to this definition of evil and this is certainly the 'the least bad of the alternatives'.
// Deliberate fallthrough
in a comment to the right of the colon, though this is more for the programmer's sake. I don't think you can disable the warning for the IDE