Skip to content

Commit 8086bc6

Browse files
committed
fix return for getSupportedTypes
1 parent 9968466 commit 8086bc6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Limenius/Liform/Serializer/Normalizer/FormErrorNormalizer.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function supportsNormalization(mixed $data, ?string $format = null, array
6060
*/
6161
public function getSupportedTypes(?string $format): array
6262
{
63-
return [Form::class];
63+
return [Form::class => true];
6464
}
6565

6666
/**
@@ -122,5 +122,4 @@ private function getErrorMessage(FormError $error)
122122

123123
return $this->translator->trans($error->getMessageTemplate(), $error->getMessageParameters(), 'validators');
124124
}
125-
126125
}

src/Limenius/Liform/Serializer/Normalizer/InitialValuesNormalizer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ private function normalizeExpandedChoice(FormView $formView): mixed
118118

119119
public function getSupportedTypes(?string $format): array
120120
{
121-
return [Form::class];
121+
return [Form::class => true];
122122
}
123123
}

0 commit comments

Comments
 (0)