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 Oct 2, 2023
1 parent b346049 commit 877bec7
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): mixed
public function transform($value): null|File|array
{
if (null === $value || [] === $value) {
return null;
Expand All @@ -46,7 +46,7 @@ public function transform($value): mixed
return array_map([$this, 'doTransform'], $value);
}

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

0 comments on commit 877bec7

Please sign in to comment.