Skip to content

Commit

Permalink
✨ Compat Sf 6.X
Browse files Browse the repository at this point in the history
And removal of deprecation notice on Sf 5.4
  • Loading branch information
Nek- committed Apr 2, 2023
1 parent bbf1a0c commit a13c882
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Integration/Symfony/Serializer/DomainDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function __construct(NormalizerInterface $decorated, DomainEventDispatche

/**
* {@inheritdoc}
* @return mixed
*/
public function denormalize($data, $class, $format = null, array $context = [])
{
Expand All @@ -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 = [])
{
Expand All @@ -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);
Expand Down

0 comments on commit a13c882

Please sign in to comment.