We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b9a92 commit cba78d5Copy full SHA for cba78d5
components/serializer.rst
@@ -1500,7 +1500,7 @@ having unique identifiers::
1500
1501
$encoder = new JsonEncoder();
1502
$defaultContext = [
1503
- AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER => function (object $object, string $format, array $context): string {
+ AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER => function (object $object, ?string $format, array $context): string {
1504
return $object->getName();
1505
},
1506
];
0 commit comments