Skip to content

Commit 8036bc9

Browse files
committed
Update NodeScopeResolver.php
1 parent a53d4ed commit 8036bc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6236,6 +6236,11 @@ private function produceArrayDimFetchAssignValueToWrite(array $dimFetchStack, ar
62366236

62376237
$iterableValueType = $valueToWrite->getIterableValueType();
62386238
foreach($dimFetchStack as $dimFetch) {
6239+
if ($dimFetch->dim === null) {
6240+
$additionalExpressions = [];
6241+
break;
6242+
}
6243+
62396244
$additionalExpressions[] = [$dimFetch, $iterableValueType];
62406245

62416246
$iterableValueType = $iterableValueType->getIterableValueType();

0 commit comments

Comments
 (0)