From 49a3f18ecc10cff61a96d05037673966da867fe0 Mon Sep 17 00:00:00 2001 From: Aubert Jordan Date: Mon, 28 Apr 2025 10:57:19 +0200 Subject: [PATCH] Update custom_normalizer.rst Update `normalize` signature according to `NormalizerInterface` --- serializer/custom_normalizer.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serializer/custom_normalizer.rst b/serializer/custom_normalizer.rst index b357f3f91ad..eafabde50cb 100644 --- a/serializer/custom_normalizer.rst +++ b/serializer/custom_normalizer.rst @@ -36,9 +36,9 @@ normalization process:: ) { } - public function normalize(mixed $object, ?string $format = null, array $context = []): array + public function normalize(mixed $data, ?string $format = null, array $context = []): array { - $data = $this->normalizer->normalize($object, $format, $context); + $data = $this->normalizer->normalize($data, $format, $context); // Here, add, edit, or delete some data: $data['href']['self'] = $this->router->generate('topic_show', [