From cba78d5114c8f0827908cea675f399ae863f5d9a Mon Sep 17 00:00:00 2001 From: eltharin Date: Thu, 22 Aug 2024 11:41:58 +0200 Subject: [PATCH] just nullable --- components/serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/serializer.rst b/components/serializer.rst index 0e8af7814f3..43ed69f3307 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -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(); }, ];