|
|
@@ -32,10 +32,9 @@ final class DefaultNormalizer implements NormalizerInterface, DenormalizerInterf
|
|
|
return $this->decorated->supportsNormalization($data, $format);
|
|
|
}
|
|
|
|
|
|
- public function normalize($object, $format = null, array $context = [])
|
|
|
+ public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
|
|
|
{
|
|
|
- $data = $this->decorated->normalize($object, $format, $context);
|
|
|
- return $data;
|
|
|
+ return $this->decorated->normalize($object, $format, $context);
|
|
|
}
|
|
|
|
|
|
public function supportsDenormalization($data, $type, $format = null): bool
|
|
|
@@ -43,7 +42,7 @@ final class DefaultNormalizer implements NormalizerInterface, DenormalizerInterf
|
|
|
return $this->decorated->supportsDenormalization($data, $type, $format);
|
|
|
}
|
|
|
|
|
|
- public function denormalize($data, $class, $format = null, array $context = [])
|
|
|
+ public function denormalize($data, $class, $format = null, array $context = []): mixed
|
|
|
{
|
|
|
$entity = $this->decorated->denormalize($data, $class, $format, $context);
|
|
|
|