Skip to content
/ form Public

Commit cad6989

Browse files
committedJun 30, 2023
[7.0] Fix various @psalm-return annotations
1 parent 950852a commit cad6989

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
 

‎DataTransformerInterface.php

+4-8
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,11 @@ interface DataTransformerInterface
5858
*
5959
* @param TValue|null $value The value in the original representation
6060
*
61-
* @return mixed
62-
*
63-
* @psalm-return TTransformedValue|null
61+
* @return TTransformedValue|null
6462
*
6563
* @throws TransformationFailedException when the transformation fails
6664
*/
67-
public function transform(mixed $value);
65+
public function transform(mixed $value): mixed;
6866

6967
/**
7068
* Transforms a value from the transformed representation to its original
@@ -89,11 +87,9 @@ public function transform(mixed $value);
8987
*
9088
* @param TTransformedValue|null $value The value in the transformed representation
9189
*
92-
* @return mixed
93-
*
94-
* @psalm-return TValue|null
90+
* @return TValue|null
9591
*
9692
* @throws TransformationFailedException when the transformation fails
9793
*/
98-
public function reverseTransform(mixed $value);
94+
public function reverseTransform(mixed $value): mixed;
9995
}

0 commit comments

Comments
 (0)
Please sign in to comment.