Skip to content

Commit 4777927

Browse files
committed
Update NodeScopeResolver.php
1 parent 003fa3f commit 4777927

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
@@ -6243,7 +6243,7 @@ private function produceArrayDimFetchAssignValueToWrite(array $dimFetchStack, ar
62436243
if (count($dimFetchStack) === 1) {
62446244
$dimFetch = $dimFetchStack[0];
62456245
if ($dimFetch->dim !== null) {
6246-
$additionalExpressions[] = [$dimFetchStack[0], $originalValueToWrite];
6246+
$additionalExpressions[] = [$dimFetch, $originalValueToWrite];
62476247
}
62486248
} else {
62496249
$offsetValueType = $valueToWrite;

0 commit comments

Comments
 (0)