From 3fcf543f757b0355dfa9bf2690bcd74f5c5d1e60 Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Wed, 13 Nov 2019 06:32:44 +0100 Subject: [PATCH] [Serializer] Fix ProblemNormalizer signature mismatch --- .../Component/Serializer/Normalizer/ProblemNormalizer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php index 0569c2923bcda..17d599d74e215 100644 --- a/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php @@ -38,7 +38,7 @@ public function __construct(bool $debug = false, array $defaultContext = []) /** * {@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 @@ public function normalize($exception, $format = null, array $context = []) /** * {@inheritdoc} */ - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, string $format = null): bool { return $data instanceof FlattenException; }