Skip to content

Commit

Permalink
bug symfony#103 Fix for wrong type passed to moveTo() (lemon-juice)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.1-dev branch.

Discussion
----------

Fix for wrong type passed to moveTo()

Issue symfony#102

Commits
-------

7f3b5c1 Fix for wrong type passed to moveTo()
  • Loading branch information
derrabus committed Nov 16, 2021
2 parents 22b37c8 + 7f3b5c1 commit 316f5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Factory/UploadedFile.php
Expand Up @@ -61,7 +61,7 @@ public function move($directory, $name = null): File
$target = $this->getTargetFile($directory, $name);

try {
$this->psrUploadedFile->moveTo($target);
$this->psrUploadedFile->moveTo((string) $target);
} catch (\RuntimeException $e) {
throw new FileException(sprintf('Could not move the file "%s" to "%s" (%s)', $this->getPathname(), $target, $e->getMessage()), 0, $e);
}
Expand Down

0 comments on commit 316f5cb

Please sign in to comment.