diff --git a/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php index 0569c2923b..17d599d74e 100644 --- a/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php @@ -38,7 +38,7 @@ class ProblemNormalizer implements NormalizerInterface, CacheableSupportsMethodI /** * {@inheritdoc} */ - public function normalize($exception, $format = null, array $context = []) + public function normalize($exception, string $format = null, array $context = []) { $context += $this->defaultContext; @@ -59,7 +59,7 @@ class ProblemNormalizer implements NormalizerInterface, CacheableSupportsMethodI /** * {@inheritdoc} */ - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, string $format = null): bool { return $data instanceof FlattenException; }