Skip to content

Commit

Permalink
__serialize returns explicit mixed array
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 4, 2023
1 parent 6682a4a commit e14163c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reflection/Php/PhpMethodFromParserNodeReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __construct(
$realReturnType = new VoidType();
}
if ($name === '__serialize') {
$realReturnType = new ArrayType(new MixedType(), new MixedType());
$realReturnType = new ArrayType(new MixedType(true), new MixedType(true));
}

parent::__construct(
Expand Down

0 comments on commit e14163c

Please sign in to comment.