Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d9fd5c7

Browse filesBrowse files
committed
Fix the DataTransformerInterface generic types to support the patcher
1 parent 5051ae3 commit d9fd5c7
Copy full SHA for d9fd5c7

File tree

Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed

‎src/Symfony/Component/Form/DataTransformerInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/DataTransformerInterface.php
+6-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.