diff --git a/serializer/custom_normalizer.rst b/serializer/custom_normalizer.rst index e9016065338..9f2e50fdcf1 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) + public function supportsNormalization($data, $format = null, array $context = []) { return $data instanceof Topic; }