Skip to content

Commit

Permalink
just nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
eltharin authored and javiereguiluz committed Aug 26, 2024
1 parent 04b9a92 commit cba78d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ having unique identifiers::

$encoder = new JsonEncoder();
$defaultContext = [
AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER => function (object $object, string $format, array $context): string {
AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER => function (object $object, ?string $format, array $context): string {
return $object->getName();
},
];
Expand Down

0 comments on commit cba78d5

Please sign in to comment.