Symfony-coding-standard
Symfony-coding-standard copied to clipboard
ReturnOrThrowSniff false positive
switch ($a) {
case 'a':
switch ($b) {
case 'b':
return 'c';
}
break;
}
The sniff is triggered on the return, but I think it shouldn't be, since a switch without a default:
is not guaranteed to return something.