Skip to content

Commit e411143

Browse files
jeremyFreeAgentdunglas
authored andcommitted
fix: implicitly nullable parameter declarations deprecation
Implicitly nullable parameter declarations is deprecated in PHP 8.4
1 parent 70387a1 commit e411143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TypedSerializerTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ trait TypedSerializerTrait
2121
denormalize as private doDenormalize;
2222
}
2323

24-
public function normalize(mixed $data, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
24+
public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
2525
{
2626
return $this->doNormalize($data, $format, $context);
2727
}
2828

29-
public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed
29+
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
3030
{
3131
return $this->doDenormalize($data, $type, $format, $context);
3232
}

0 commit comments

Comments
 (0)