Skip to content

Commit b67227b

Browse files
committed
bug #11613 Remove $context argument from supportsNormalization in example (pskt)
This PR was merged into the 3.4 branch. Discussion ---------- Remove $context argument from supportsNormalization in example This PR removes `$context` argument from supportsNormalization() method. `NormalizerInterface` defines only `$data` and `$format` arguments (see https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php#L51) Commits ------- cd1fa25 Remove $context argument from example code
2 parents a4a4281 + cd1fa25 commit b67227b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serializer/custom_normalizer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``:
4747
return $data;
4848
}
4949

50-
public function supportsNormalization($data, $format = null, array $context = [])
50+
public function supportsNormalization($data, $format = null)
5151
{
5252
return $data instanceof Topic;
5353
}

0 commit comments

Comments
 (0)