From a1d4e02e4487d3828c2537e43b5776eee62e8753 Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Mon, 28 Oct 2024 12:40:44 -0400 Subject: [PATCH] compatible with Symfony\Component\Serializer\Normalizer\DenormalizerInterface::denormalize --- src/Normalizer/ContentEntityNormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Normalizer/ContentEntityNormalizer.php b/src/Normalizer/ContentEntityNormalizer.php index 5b06725..55ffa10 100644 --- a/src/Normalizer/ContentEntityNormalizer.php +++ b/src/Normalizer/ContentEntityNormalizer.php @@ -195,7 +195,7 @@ public function normalize($entity, $format = NULL, array $context = []): array|b /** * {@inheritdoc} */ - public function denormalize($data, $class, $format = NULL, array $context = []) { + public function denormalize(mixed $data, string $class, ?string $format = NULL, array $context = []) : mixed { // Get type, necessary for determining which bundle to create. if (!isset($data['_links']['type'])) {