diff --git a/src/Bridge/Symfony/Serializer/Normalizer/EnumNormalizer.php b/src/Bridge/Symfony/Serializer/Normalizer/EnumNormalizer.php index 381266b..1cc6ff9 100644 --- a/src/Bridge/Symfony/Serializer/Normalizer/EnumNormalizer.php +++ b/src/Bridge/Symfony/Serializer/Normalizer/EnumNormalizer.php @@ -26,9 +26,12 @@ class EnumNormalizer implements NormalizerInterface, DenormalizerInterface /** * {@inheritdoc} * - * @param EnumInterface $object + * @template T of int|string + * @param EnumInterface $object + * + * @return T */ - public function normalize($object, $format = null, array $context = []): string + public function normalize($object, $format = null, array $context = []) { return $object->getValue(); }