diff --git a/serializer/custom_normalizer.rst b/serializer/custom_normalizer.rst index 1794590c5c8..b82b61e8e07 100644 --- a/serializer/custom_normalizer.rst +++ b/serializer/custom_normalizer.rst @@ -47,7 +47,7 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``: return $data; } - public function supportsNormalization($data, $format = null, array $context = []) + public function supportsNormalization($data, $format = null) { return $data instanceof Topic; }