Skip to content

Commit c56e097

Browse files
committed
Update NodeScopeResolver.php
1 parent 9695087 commit c56e097

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5698,7 +5698,10 @@ private function processAssignVar(
56985698
$varForSetOffsetValue = $var->var;
56995699
}
57005700

5701-
if ($scope->hasExpressionType($var)->yes()) {
5701+
if (
5702+
$var === $originalVar
5703+
&& $scope->hasExpressionType($var)->yes()
5704+
) {
57025705
$assignedPropertyExpr = new SetExistingOffsetValueTypeExpr(
57035706
$varForSetOffsetValue,
57045707
$var->dim,

0 commit comments

Comments
 (0)