Adapted PartNormalizer to PHP 8.4.

Was missing ? to allow null value.
PHP 8.4: Implicitly nullable parameter declarations deprecated
This commit is contained in:
Monoxide13 2025-07-21 09:58:49 -07:00
parent 8b417d6441
commit ddbe32ff16

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)) {