diff --git a/Serializer/Normalizer/DictionaryEnumNormalizer.php b/Serializer/Normalizer/DictionaryEnumNormalizer.php index a85f648..ac0c6a1 100644 --- a/Serializer/Normalizer/DictionaryEnumNormalizer.php +++ b/Serializer/Normalizer/DictionaryEnumNormalizer.php @@ -34,6 +34,16 @@ public function supportsNormalization(mixed $data, string $format = null): bool return $data instanceof DictionaryEnumInterface; } + /** + * {@inheritdoc} + */ + public function getSupportedTypes(?string $format): array + { + return [ + DictionaryEnumInterface::class => true, + ]; + } + /** * @param DictionaryEnumInterface $object * @param string|null $format