Skip to content

Commit f2b3092

Browse files
authored
[10.x] Fix UploadedFile store-type methods (#44980)
1 parent d68e096 commit f2b3092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Http/UploadedFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function storePublicly($path = '', $options = [])
6363
public function storePubliclyAs($path, $name = null, $options = [])
6464
{
6565
if (is_null($name) || is_array($name)) {
66-
[$path, $name, $options] = ['', $path, $options ?? []];
66+
[$path, $name, $options] = ['', $path, $name ?? []];
6767
}
6868

6969
$options = $this->parseOptions($options);
@@ -84,7 +84,7 @@ public function storePubliclyAs($path, $name = null, $options = [])
8484
public function storeAs($path, $name = null, $options = [])
8585
{
8686
if (is_null($name) || is_array($name)) {
87-
[$path, $name, $options] = ['', $path, $options ?? []];
87+
[$path, $name, $options] = ['', $path, $name ?? []];
8888
}
8989

9090
$options = $this->parseOptions($options);

0 commit comments

Comments
 (0)