Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 316f5cb

Browse filesBrowse 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
Copy full SHA for 316f5cb

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎Factory/UploadedFile.php

Copy file name to clipboardExpand all lines: Factory/UploadedFile.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.