Skip to content

Commit f381808

Browse files
actions-usersamsonasik
authored andcommitted
[ci-review] Rector Rectify
1 parent ebc06ca commit f381808

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/EarlyReturn/Rector/Foreach_/ChangeNestedForeachIfsToEarlyContinueRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public function refactor(Node $node): ?Node
9696
return null;
9797
}
9898

99-
foreach ($nestedIfsWithOnlyNonReturn as $nestedIf) {
100-
$nestedIf->cond->setAttribute(AttributeKey::ORIGINAL_NODE, null);
99+
foreach ($nestedIfsWithOnlyNonReturn as $nestedIfWithOnlyNonReturn) {
100+
$nestedIfWithOnlyNonReturn->cond->setAttribute(AttributeKey::ORIGINAL_NODE, null);
101101
}
102102

103103
return $this->processNestedIfsWithNonBreaking($node, $nestedIfsWithOnlyNonReturn);

0 commit comments

Comments
 (0)