Skip to content

Commit 1ea9537

Browse files
[Serializer] Add missing types to FormErrorNormalizer
1 parent b98631a commit 1ea9537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Normalizer/FormErrorNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class FormErrorNormalizer implements NormalizerInterface, CacheableSupport
2525
/**
2626
* {@inheritdoc}
2727
*/
28-
public function normalize($object, $format = null, array $context = []): array
28+
public function normalize($object, string $format = null, array $context = []): array
2929
{
3030
$data = [
3131
'title' => $context[self::TITLE] ?? 'Validation Failed',
@@ -44,7 +44,7 @@ public function normalize($object, $format = null, array $context = []): array
4444
/**
4545
* {@inheritdoc}
4646
*/
47-
public function supportsNormalization($data, $format = null): bool
47+
public function supportsNormalization($data, string $format = null): bool
4848
{
4949
return $data instanceof FormInterface && $data->isSubmitted() && !$data->isValid();
5050
}

0 commit comments

Comments
 (0)