8000 Fix for wrong type passed to moveTo() · symfony/symfony@7f3b5c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f3b5c1

Browse files
authored
Fix for wrong type passed to moveTo()
1 parent 22b37c8 commit 7f3b5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Factory/UploadedFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function move($directory, $name = null): File
6161
$target = $this->getTargetFile($directory, $name);
6262

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

0 commit comments

Comments
 (0)
0