Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 316f5cb

Browse files
committed
bug #103 Fix for wrong type passed to moveTo() (lemon-juice)
This PR was merged into the 2.1-dev branch. Discussion ---------- Fix for wrong type passed to moveTo() Issue #102 Commits ------- 7f3b5c1 Fix for wrong type passed to moveTo()
2 parents 22b37c8 + 7f3b5c1 commit 316f5cb

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)