From e6a2a2d165ee28b8548a481a7e02b8cab61e5443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 5 Jan 2026 16:13:17 +0100 Subject: [PATCH] Add `getSupportedTypes` method and update return types in `PersonJsonDenormalizerTest` --- .../Serializer/Normalizer/PersonJsonDenormalizerTest.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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());