diff --git a/src/Bridge/Symfony/Serializer/Normalizer/EnumNormalizer.php b/src/Bridge/Symfony/Serializer/Normalizer/EnumNormalizer.php index 07ccf87b..381266b3 100644 --- a/src/Bridge/Symfony/Serializer/Normalizer/EnumNormalizer.php +++ b/src/Bridge/Symfony/Serializer/Normalizer/EnumNormalizer.php @@ -36,7 +36,7 @@ public function normalize($object, $format = null, array $context = []): string /** * {@inheritdoc} */ - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return $data instanceof EnumInterface; } @@ -67,7 +67,7 @@ public function denormalize($data, $class, $format = null, array $context = []): /** * {@inheritdoc} */ - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return is_a($type, EnumInterface::class, true); }