diff --git a/src/Path.php b/src/Path.php index 2f4a177..42ffc7b 100644 --- a/src/Path.php +++ b/src/Path.php @@ -848,8 +848,9 @@ public static function getLongestCommonBasePath(array $paths) */ public static function join($paths) { + $args = func_get_args(); if (!is_array($paths)) { - $paths = func_get_args(); + $paths = $args; } Assert::allString($paths, 'The paths must be strings. Got: %s');