From 1a84e34a2a910c6da98f74b44992403e2161792f Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 21 Dec 2023 09:30:21 -0600 Subject: [PATCH] [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 * Update src/Illuminate/Filesystem/functions.php Co-authored-by: Mior Muhammad Zaki * ~ Don't explicitly test for null --------- Co-authored-by: Mior Muhammad Zaki --- src/Illuminate/Filesystem/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Filesystem/functions.php b/src/Illuminate/Filesystem/functions.php index 47a26fd5eb38..af39716f6e4f 100644 --- a/src/Illuminate/Filesystem/functions.php +++ b/src/Illuminate/Filesystem/functions.php @@ -10,7 +10,7 @@ * @param string ...$paths * @return string */ - function join_paths($basePath, string ...$paths) + function join_paths($basePath, ...$paths) { foreach ($paths as $index => $path) { if (empty($path)) {