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 f1c7127 commit 117c0aeCopy full SHA for 117c0ae
components/serializer.rst
@@ -1486,7 +1486,7 @@ having unique identifiers::
1486
1487
$encoder = new JsonEncoder();
1488
$defaultContext = [
1489
- AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER => function (object $object, string $format, array $context): string {
+ AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER => function (object $object, ?string $format, array $context): string {
1490
return $object->getName();
1491
},
1492
];
0 commit comments