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 7f3b5c1

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

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.