Skip to content

Commit 1211b64

Browse files
committed
[ci-review] Rector Rectify
1 parent 017857c commit 1211b64

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

rules/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,8 @@ private function replaceNextUsageVariable(
254254
return NodeVisitor::STOP_TRAVERSAL;
255255
}
256256

257-
if ($node instanceof Catch_) {
258-
if ($this->shouldSkipFollowingCatch($node, $newVariableName, $oldVariableName)) {
259-
return NodeVisitor::STOP_TRAVERSAL;
260-
}
257+
if ($node instanceof Catch_ && $this->shouldSkipFollowingCatch($node, $newVariableName, $oldVariableName)) {
258+
return NodeVisitor::STOP_TRAVERSAL;
261259
}
262260

263261
if (! $node instanceof Variable) {

0 commit comments

Comments
 (0)