diff --git a/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonJsonDenormalizerTest.php b/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonJsonDenormalizerTest.php index aef5ee584..30324be06 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonJsonDenormalizerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonJsonDenormalizerTest.php @@ -172,7 +172,7 @@ final class PersonJsonDenormalizerTest extends TestCase public ?Gender $gender = null; public ?Center $center = null; - public function denormalize($data, $type, $format = null, array $context = []) + public function denormalize($data, $type, $format = null, array $context = []): mixed { if (PhoneNumber::class === $type) { return '' === $data ? null : new PhoneNumber(); @@ -193,10 +193,15 @@ final class PersonJsonDenormalizerTest extends TestCase return null; } - public function supportsDenormalization($data, $type, $format = null) + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return true; } + + public function getSupportedTypes(?string $format): array + { + return ['*' => false]; + } }; $denormalizer = new PersonJsonDenormalizer($this->createIdentifierManager());