From ddbe32ff1673e7e3abcede3fd9cd8de8a26a76b4 Mon Sep 17 00:00:00 2001 From: Monoxide13 Date: Mon, 21 Jul 2025 09:58:49 -0700 Subject: [PATCH] Adapted PartNormalizer to PHP 8.4. Was missing ? to allow null value. PHP 8.4: Implicitly nullable parameter declarations deprecated --- src/Serializer/PartNormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serializer/PartNormalizer.php b/src/Serializer/PartNormalizer.php index 9050abfc..775df77f 100644 --- a/src/Serializer/PartNormalizer.php +++ b/src/Serializer/PartNormalizer.php @@ -92,7 +92,7 @@ public function normalize($object, ?string $format = null, array $context = []): 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)) {