Skip to content

Commit 48abefc

Browse files
Revert
1 parent ef88a7a commit 48abefc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Php/FilterFunctionReturnTypeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function getType(Type $inputType, ?Type $filterType, ?Type $flagsType): T
191191
}
192192

193193
if ($hasRequireArrayFlag->yes()) {
194-
$type = new ArrayType($inputArrayKeyType ?? new MixedType(), $type);
194+
$type = new ArrayType($inputArrayKeyType ?? $mixedType, $type);
195195
if (!$inputIsArray->yes()) {
196196
$type = TypeCombinator::union($type, $defaultType);
197197
}

0 commit comments

Comments
 (0)