Skip to content

Commit 71b25bc

Browse files
committed
Fix after merge
1 parent f6a9d38 commit 71b25bc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Type/Php/ArrayMapFunctionReturnTypeExtension.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,10 @@ public function getTypeFromFunctionCall(FunctionReflection $functionReflection,
168168
);
169169
}
170170
} else {
171-
$mappedArrayType = AccessoryArrayListType::intersectWith(
172-
TypeCombinator::intersect(new ArrayType(
173-
new IntegerType(),
174-
$valueType,
175-
), ...TypeUtils::getAccessoryTypes($arrayType)),
176-
);
171+
$mappedArrayType = TypeCombinator::intersect(new ArrayType(
172+
new IntegerType(),
173+
$valueType,
174+
), new AccessoryArrayListType(), ...TypeUtils::getAccessoryTypes($arrayType));
177175
}
178176

179177
if ($arrayType->isIterableAtLeastOnce()->yes()) {

0 commit comments

Comments
 (0)