[Serializer] Fix ProblemNormalizer signature mismatch

This commit is contained in:
Robin Chalas 2019-11-13 06:32:44 +01:00
parent 92748b6c22
commit 3fcf543f75

View File

@ -38,7 +38,7 @@ class ProblemNormalizer implements NormalizerInterface, CacheableSupportsMethodI
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function normalize($exception, $format = null, array $context = []) public function normalize($exception, string $format = null, array $context = [])
{ {
$context += $this->defaultContext; $context += $this->defaultContext;
@ -59,7 +59,7 @@ class ProblemNormalizer implements NormalizerInterface, CacheableSupportsMethodI
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function supportsNormalization($data, $format = null): bool public function supportsNormalization($data, string $format = null): bool
{ {
return $data instanceof FlattenException; return $data instanceof FlattenException;
} }