Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Sep 14, 2022
1 parent fb1f36f commit 1306b4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Analyser/NodeScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2604,7 +2604,8 @@ static function (Node $node, Scope $scope) use ($nodeCallback): void {
$hasYield = $hasYield || $armResult->hasYield();
$throwPoints = array_merge($throwPoints, $armResult->getThrowPoints());
$scope = $scope->mergeWith($matchScope);
$armNodes[] = new MatchExpressionArm([], $arm->getLine());
$matchArmBody = new MatchExpressionArmBody($scope, $arm->body);
$armNodes[] = new MatchExpressionArm($matchArmBody, [], $arm->getLine());
continue;
}

Expand Down

0 comments on commit 1306b4c

Please sign in to comment.