From cd1fa2570a418f0ac7a0e3d95f8e34c8561eeeec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Skotnicki?= Date: Mon, 27 May 2019 20:40:10 +0200 Subject: [PATCH] Remove $context argument from example code --- serializer/custom_normalizer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }