forked from mirror/Part-DB.Part-DB-server
Fixed some deprecation messages
This commit is contained in:
parent
b3ecee749e
commit
5f29ee9052
8 changed files with 14 additions and 8 deletions
|
@ -41,7 +41,7 @@ class StructuralElementNormalizer implements NormalizerInterface, CacheableSuppo
|
|||
return $data instanceof AbstractStructuralDBElement;
|
||||
}
|
||||
|
||||
public function normalize($object, string $format = null, array $context = [])
|
||||
public function normalize($object, string $format = null, array $context = []): array
|
||||
{
|
||||
if (!$object instanceof AbstractStructuralDBElement) {
|
||||
throw new \InvalidArgumentException('This normalizer only supports AbstractStructural objects!');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue