mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-02 14:34:31 +02:00
Added additional type hints
This commit is contained in:
parent
3585b8a56a
commit
d5b07bbaa3
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ class OverrideClassDenormalizer implements DenormalizerInterface, DenormalizerAw
|
|||
|
||||
public const CONTEXT_KEY = '__override_type__';
|
||||
|
||||
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = [])
|
||||
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
|
||||
{
|
||||
//Deserialize the data with the overridden type
|
||||
$overrideType = $context[self::CONTEXT_KEY];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue