mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-12 02:11:00 +01:00
Fixed some deprecations related to missing return types
This commit is contained in:
@@ -40,7 +40,7 @@ class AttachmentNormalizer implements NormalizerInterface
|
||||
|
||||
}
|
||||
|
||||
public function normalize(mixed $object, string $format = null, array $context = [])
|
||||
public function normalize(mixed $object, string $format = null, array $context = []): array|null
|
||||
{
|
||||
if (!$object instanceof Attachment) {
|
||||
throw new \InvalidArgumentException('This normalizer only supports Attachment objects!');
|
||||
|
||||
Reference in New Issue
Block a user