From a13c8826f64013facca6758aafcfa49c6bfd1370 Mon Sep 17 00:00:00 2001 From: Maxime Veber Date: Mon, 3 Apr 2023 00:41:56 +0200 Subject: [PATCH] :sparkles: Compat Sf 6.X And removal of deprecation notice on Sf 5.4 --- src/Integration/Symfony/Serializer/DomainDenormalizer.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Integration/Symfony/Serializer/DomainDenormalizer.php b/src/Integration/Symfony/Serializer/DomainDenormalizer.php index bf6159b..204089b 100644 --- a/src/Integration/Symfony/Serializer/DomainDenormalizer.php +++ b/src/Integration/Symfony/Serializer/DomainDenormalizer.php @@ -34,6 +34,7 @@ public function __construct(NormalizerInterface $decorated, DomainEventDispatche /** * {@inheritdoc} + * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) { @@ -49,13 +50,14 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * {@inheritdoc} */ - public function supportsDenormalization($data, $type, $format = null) + public function supportsDenormalization($data, $type, $format = null): bool { return $this->decorated->supportsDenormalization($data, $type, $format); } /** * {@inheritdoc} + * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { @@ -65,12 +67,12 @@ public function normalize($object, $format = null, array $context = []) /** * {@inheritdoc} */ - public function supportsNormalization($data, $format = null) + public function supportsNormalization($data, $format = null): bool { return $this->decorated->supportsNormalization($data, $format); } - public function setSerializer(SerializerInterface $serializer) + public function setSerializer(SerializerInterface $serializer): void { if ($this->decorated instanceof SerializerAwareInterface) { $this->decorated->setSerializer($serializer);