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

@ -42,7 +42,7 @@ class StructuralElementFromNameDenormalizer implements DenormalizerInterface, Ca
return is_string($data) && is_subclass_of($type, AbstractStructuralDBElement::class);
}
public function denormalize($data, string $type, string $format = null, array $context = [])
public function denormalize($data, string $type, string $format = null, array $context = []): ?AbstractStructuralDBElement
{
//Retrieve the repository for the given type
/** @var StructuralDBElementRepository $repo */