We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0125f81 commit 3e372d5Copy full SHA for 3e372d5
1 file changed
rules/Php85/Rector/Switch_/ColonAfterSwitchCaseRector.php
@@ -78,11 +78,7 @@ public function refactor(Node $node): ?Node
78
}
79
80
$nextTokenPos = $endTokenPos;
81
- while (++$nextTokenPos > 0) {
82
- if ($nextTokenPos === $startCaseStmtsPos) {
83
- break;
84
- }
85
-
+ while (++$nextTokenPos < $startCaseStmtsPos) {
86
if (! isset($oldTokens[$nextTokenPos])) {
87
continue 2;
88
0 commit comments