From b14776f38cd2bb57b686e67b42d7b9622d9e8b12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Romey?= Date: Tue, 26 Nov 2024 14:34:19 +0100 Subject: [PATCH] fix: implicitly nullable parameter declarations deprecation in tests (#144) --- tests/Fixtures/TestBundle/Document/TypedScalarValueTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Fixtures/TestBundle/Document/TypedScalarValueTrait.php b/tests/Fixtures/TestBundle/Document/TypedScalarValueTrait.php index b16d3c2..2159260 100644 --- a/tests/Fixtures/TestBundle/Document/TypedScalarValueTrait.php +++ b/tests/Fixtures/TestBundle/Document/TypedScalarValueTrait.php @@ -14,12 +14,12 @@ trait TypedScalarValueTrait { - public function normalize(NormalizerInterface $normalizer, string $format = null, array $context = []): array|string|int|float|bool + public function normalize(NormalizerInterface $normalizer, ?string $format = null, array $context = []): array|string|int|float|bool { return $this->value; } - public function denormalize(DenormalizerInterface $denormalizer, array|string|int|float|bool $data, string $format = null, array $context = []): void + public function denormalize(DenormalizerInterface $denormalizer, array|string|int|float|bool $data, ?string $format = null, array $context = []): void { $this->value = $data; }