Skip to content

Commit ea383f4

Browse files
remove deprecations notices about DataTransformerInterface
1 parent db44db9 commit ea383f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Form/DataTransformer/StringToFileTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(?string $uploadDir, callable $uploadFilename, callab
2929
$this->filesystemOperator = $filesystemOperator;
3030
}
3131

32-
public function transform($value)
32+
public function transform($value): null|File|array
3333
{
3434
if (null === $value || [] === $value) {
3535
return null;
@@ -46,7 +46,7 @@ public function transform($value)
4646
return array_map([$this, 'doTransform'], $value);
4747
}
4848

49-
public function reverseTransform($value)
49+
public function reverseTransform($value): null|string|array
5050
{
5151
if (null === $value || [] === $value) {
5252
return null;

0 commit comments

Comments
 (0)