Skip to content

Commit

Permalink
[Php52] Use instanceof check instead of compare object $newStmt === $…
Browse files Browse the repository at this point in the history
…caseStmt on ContinueToBreakInSwitchRector (#4494)
  • Loading branch information
samsonasik committed Jul 12, 2023
1 parent 2939136 commit 77167c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function refactor(Node $node): ?Switch_
}

$newStmt = $this->processContinueStatement($caseStmt);
if ($newStmt === $caseStmt) {
if ($newStmt instanceof Continue_) {
continue;
}

Expand Down

0 comments on commit 77167c7

Please sign in to comment.