Skip to content

Commit e8e7062

Browse files
committed
Fix the DataTransformerInterface generic types to support the patcher
1 parent 6ef363b commit e8e7062

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

DataTransformerInterface.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ interface DataTransformerInterface
5858
*
5959
* @param TValue|null $value The value in the original representation
6060
*
61-
* @return TTransformedValue|null
61+
* @return mixed
62+
*
63+
* @psalm-return TTransformedValue|null
6264
*
6365
* @throws TransformationFailedException when the transformation fails
6466
*/
@@ -87,7 +89,9 @@ public function transform(mixed $value);
8789
*
8890
* @param TTransformedValue|null $value The value in the transformed representation
8991
*
90-
* @return TValue|null
92+
* @return mixed
93+
*
94+
* @psalm-return TValue|null
9195
*
9296
* @throws TransformationFailedException when the transformation fails
9397
*/

0 commit comments

Comments
 (0)