File tree Expand file tree Collapse file tree 3 files changed +9
-13
lines changed
src/Symfony/Component/Form
Extension/Core/DataTransformer Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 18
18
*
19
19
* @author Bernhard Schussek <bschussek@gmail.com>
20
20
*
21
- * @template T
22
- * @template R
21
+ * @template TValue
22
+ * @template TTransformedValue
23
23
*/
24
24
interface DataTransformerInterface
25
25
{
@@ -56,11 +56,9 @@ interface DataTransformerInterface
56
56
* of the first data transformer outputs NULL, the second must be able to
57
57
* process that value.
58
58
*
59
- * @param mixed $value The value in the original representation
60
- * @psalm-param T|null $value
59
+ * @param TValue|null $value The value in the original representation
61
60
*
62
- * @return mixed
63
- * @psalm-return R|null
61
+ * @return TTransformedValue|null
64
62
*
65
63
* @throws TransformationFailedException when the transformation fails
66
64
*/
@@ -87,11 +85,9 @@ public function transform(mixed $value);
87
85
* By convention, reverseTransform() should return NULL if an empty string
88
86
* is passed.
89
87
*
90
- * @param mixed $value The value in the transformed representation
91
- * @psalm-param R|null $value
88
+ * @param TTransformedValue|null $value The value in the transformed representation
92
89
*
93
- * @return mixed
94
- * @psalm-return T|null
90
+ * @return TValue|null
95
91
*
96
92
* @throws TransformationFailedException when the transformation fails
97
93
*/
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Form \Exception \InvalidArgumentException ;
16
16
17
17
/**
18
- * @template R
19
- * @implements DataTransformerInterface<\DateTimeInterface, R >
18
+ * @template TTransformedValue
19
+ * @implements DataTransformerInterface<\DateTimeInterface, TTransformedValue >
20
20
*/
21
21
abstract class BaseDateTimeTransformer implements DataTransformerInterface
22
22
{
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class DateTimeToHtml5LocalDateTimeTransformer extends BaseDateTimeTransformer
31
31
* input is an RFC3339 date followed by 'T', followed by an RFC3339 time.
32
32
* https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-local-date-and-time-string
33
33
*
34
- * @param \DateTimeInterface $dateTime A DateTime object
34
+ * @param \DateTimeInterface $dateTime
35
35
*
36
36
* @throws TransformationFailedException If the given value is not an
37
37
* instance of \DateTime or \DateTimeInterface
You can’t perform that action at this time.
0 commit comments