Skip to content

Commit

Permalink
[Serializer] Fix SerializerInterface for PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
BackEndTea authored and nicolas-grekas committed Jan 9, 2023
1 parent 28b79d4 commit c9d243d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SerializerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public function serialize(mixed $data, string $format, array $context = []): str
* @param array<string, mixed> $context
*
* @psalm-return (TType is class-string<TObject> ? TObject : mixed)
*
* @phpstan-return ($type is class-string<TObject> ? TObject : mixed)
*/
public function deserialize(mixed $data, string $type, string $format, array $context = []): mixed;
}

0 comments on commit c9d243d

Please sign in to comment.