Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3fcf543

Browse files
committed
[Serializer] Fix ProblemNormalizer signature mismatch
1 parent 92748b6 commit 3fcf543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(bool $debug = false, array $defaultContext = [])
3838
/**
3939
* {@inheritdoc}
4040
*/
41-
public function normalize($exception, $format = null, array $context = [])
41+
public function normalize($exception, string $format = null, array $context = [])
4242
{
4343
$context += $this->defaultContext;
4444

@@ -59,7 +59,7 @@ public function normalize($exception, $format = null, array $context = [])
5959
/**
6060
* {@inheritdoc}
6161
*/
62-
public function supportsNormalization($data, $format = null): bool
62+
public function supportsNormalization($data, string $format = null): bool
6363
{
6464
return $data instanceof FlattenException;
6565
}

0 commit comments

Comments
 (0)