Fixed some deprecation messages

This commit is contained in:
Jan Böhmer 2023-04-15 21:18:11 +02:00
parent b3ecee749e
commit 5f29ee9052
8 changed files with 14 additions and 8 deletions

View file

@ -51,7 +51,7 @@ class StructuralElementDenormalizer implements ContextAwareDenormalizerInterface
&& in_array('import', $context['groups'] ?? []);
}
public function denormalize($data, string $type, string $format = null, array $context = [])
public function denormalize($data, string $type, string $format = null, array $context = []): ?AbstractStructuralDBElement
{
/** @var AbstractStructuralDBElement $deserialized_entity */
$deserialized_entity = $this->normalizer->denormalize($data, $type, $format, $context);