mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-15 05:15:04 +01:00
[TypeDeclaration] Add missing break; in loop in SilentVoidResolver::isSwitchWithAlwaysReturn() (#6278)
This commit is contained in:
parent
0203e0fda1
commit
139c73c5b5
@ -114,6 +114,7 @@ final class SilentVoidResolver
|
||||
foreach ($switch->cases as $case) {
|
||||
if ($case->cond === null) {
|
||||
$hasDefault = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user