Skip to content

Commit d8ea5df

Browse files
committed
Update NodeScopeResolver.php
1 parent a585526 commit d8ea5df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6180,7 +6180,7 @@ private function produceArrayDimFetchAssignValueToWrite(array $dimFetchStack, ar
61806180
}
61816181

61826182
$reverseDimFetch = $dimFetchStack[count($dimFetchStack) - 1 - $i] ?? null;
6183-
if ($reverseDimFetch !== null) {
6183+
if ($reverseDimFetch !== null && $reverseDimFetch->dim !== null) {
61846184
$additionalExpressions[] = [$reverseDimFetch, $valueToWrite];
61856185
}
61866186

0 commit comments

Comments
 (0)