Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 11, 2024
1 parent a847318 commit 3f5ae77
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ public function processNodes(
$node instanceof Expression ||
$node instanceof Return_ ||
$node instanceof EnumCase ||
$node instanceof Cast
$node instanceof Cast ||
$node instanceof YieldFrom
) && $node->expr instanceof Expr) {
$node->expr->setAttribute(AttributeKey::SCOPE, $mutatingScope);
return;
Expand Down Expand Up @@ -309,11 +310,6 @@ public function processNodes(
$this->processYield($node, $mutatingScope);
return;
}

if ($node instanceof YieldFrom) {
$node->expr->setAttribute(AttributeKey::SCOPE, $mutatingScope);
return;
}
};

$this->nodeScopeResolverProcessNodes($stmts, $scope, $nodeCallback);
Expand Down

0 comments on commit 3f5ae77

Please sign in to comment.