Skip to content

Commit c9d243d

Browse files
BackEndTeanicolas-grekas
authored andcommitted
[Serializer] Fix SerializerInterface for PHPStan
1 parent 28b79d4 commit c9d243d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SerializerInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public function serialize(mixed $data, string $format, array $context = []): str
3333
* @param array<string, mixed> $context
3434
*
3535
* @psalm-return (TType is class-string<TObject> ? TObject : mixed)
36+
*
37+
* @phpstan-return ($type is class-string<TObject> ? TObject : mixed)
3638
*/
3739
public function deserialize(mixed $data, string $type, string $format, array $context = []): mixed;
3840
}

0 commit comments

Comments
 (0)