Skip to content

Commit 146c533

Browse files
committed
Update ArrayReplaceFunctionReturnTypeExtension.php
1 parent 13693a7 commit 146c533

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Type/Php/ArrayReplaceFunctionReturnTypeExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ public function getTypeFromFunctionCall(FunctionReflection $functionReflection,
117117
}
118118
} else {
119119
foreach ($offsetTypes as $key => [$hasOffsetValue, $offsetValueType]) {
120+
// more precise values-types will be calculated elsewhere.
121+
// just remember the offset key.
120122
$offsetTypes[$key] = [
121123
$hasOffsetValue->and(TrinaryLogic::createMaybe()),
122124
new MixedType(),

0 commit comments

Comments
 (0)