Skip to content

Commit 1a84e34

Browse files
[10.x] Illuminate\Filesystem\join_paths(): Argument #2 must be of type string, null given (#49467)
* + Added test that reproduces bug * + Added fix that resolves bug * Update src/Illuminate/Filesystem/functions.php Co-authored-by: Mior Muhammad Zaki <[email protected]> * Update src/Illuminate/Filesystem/functions.php Co-authored-by: Mior Muhammad Zaki <[email protected]> * ~ Don't explicitly test for null --------- Co-authored-by: Mior Muhammad Zaki <[email protected]>
1 parent 1652608 commit 1a84e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Filesystem/functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @param string ...$paths
1111
* @return string
1212
*/
13-
function join_paths($basePath, string ...$paths)
13+
function join_paths($basePath, ...$paths)
1414
{
1515
foreach ($paths as $index => $path) {
1616
if (empty($path)) {

0 commit comments

Comments
 (0)