Skip to content

Commit

Permalink
remove deprecations notices about DataTransformerInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-averty committed Jan 5, 2023
1 parent 5893ebd commit 139e66f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/DataTransformer/StringToFileTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(?string $uploadDir, callable $uploadFilename, callab
$this->filesystemOperator = $filesystemOperator;
}

public function transform($value)
public function transform($value): null|File|array
{
if (null === $value || [] === $value) {
return null;
Expand All @@ -46,7 +46,7 @@ public function transform($value)
return array_map([$this, 'doTransform'], $value);
}

public function reverseTransform($value)
public function reverseTransform($value): null|string|array
{
if (null === $value || [] === $value) {
return null;
Expand Down

0 comments on commit 139e66f

Please sign in to comment.