Fixed deprecation on PHP8.4

Implements PR #970
This commit is contained in:
Jan Böhmer 2025-08-04 22:15:32 +02:00
parent 496df89e0b
commit f9b85c3b85

View file

@ -92,7 +92,7 @@ class PartNormalizer implements NormalizerInterface, DenormalizerInterface, Norm
return $data;
}
public function supportsDenormalization($data, string $type, string $format = null, array $context = []): bool
public function supportsDenormalization($data, string $type, ?string $format = null, array $context = []): bool
{
//Only denormalize if we are doing a file import operation
if (!($context['partdb_import'] ?? false)) {