Skip to content

Commit

Permalink
[7.0] Fix various @psalm-return annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 30, 2023
1 parent 950852a commit cad6989
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions DataTransformerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ interface DataTransformerInterface
*
* @param TValue|null $value The value in the original representation
*
* @return mixed
*
* @psalm-return TTransformedValue|null
* @return TTransformedValue|null
*
* @throws TransformationFailedException when the transformation fails
*/
public function transform(mixed $value);
public function transform(mixed $value): mixed;

/**
* Transforms a value from the transformed representation to its original
Expand All @@ -89,11 +87,9 @@ public function transform(mixed $value);
*
* @param TTransformedValue|null $value The value in the transformed representation
*
* @return mixed
*
* @psalm-return TValue|null
* @return TValue|null
*
* @throws TransformationFailedException when the transformation fails
*/
public function reverseTransform(mixed $value);
public function reverseTransform(mixed $value): mixed;
}

0 comments on commit cad6989

Please sign in to comment.