Skip to content

Commit

Permalink
Merge pull request #19 from swagindustries/feat/remove-deprecation-no…
Browse files Browse the repository at this point in the history
…tice-sf54
  • Loading branch information
Nek- committed May 16, 2023
2 parents bbf1a0c + a13c882 commit a8bd1e2
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 a8bd1e2

Please sign in to comment.