Skip to content

Commit

Permalink
ParseStrParameterOutTypeExtension - use explicit mixed array item type
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 20, 2024
1 parent ca2c937 commit 95fbd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/Php/ParseStrParameterOutTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getParameterOutTypeFromFunctionCall(FunctionReflection $function

return new ArrayType(
new UnionType([new StringType(), new IntegerType()]),
new UnionType([new ArrayType(new MixedType(), new MixedType()), $valueType]),
new UnionType([new ArrayType(new MixedType(), new MixedType(true)), $valueType]),
);
}

Expand Down

0 comments on commit 95fbd57

Please sign in to comment.