Skip to content

Commit 8aa4576

Browse files
committed
Update AssignHandler.php
1 parent 1e002a7 commit 8aa4576

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Analyser/ExprHandler/AssignHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,8 @@ private function produceArrayDimFetchAssignValueToWrite(array $dimFetchStack, ar
10131013
}
10141014

10151015
} else {
1016+
// when $unionValues=false the array-item type will be replaced with $valueToWrite
1017+
// when $unionValues=true the existing array item-type will be union with $valueToWrite
10161018
$unionValues = false;
10171019
if ($i === 0) {
10181020
$unionValues = true;

0 commit comments

Comments
 (0)