Skip to content

Commit

Permalink
fix: implicitly nullable parameter declarations deprecation in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyFreeAgent committed Nov 26, 2024
1 parent e411143 commit 9337e76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Fixtures/TestBundle/Document/TypedScalarValueTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9337e76

Please sign in to comment.