From 5437f429ba54439d42791f670f3365c06dacc451 Mon Sep 17 00:00:00 2001 From: Brooke Bryan Date: Tue, 2 Feb 2021 14:02:48 +0000 Subject: [PATCH] Path check --- src/Path.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Path.php b/src/Path.php index e16d199..5fd7b5c 100644 --- a/src/Path.php +++ b/src/Path.php @@ -126,7 +126,7 @@ public static function custom($separator, array $pathComponents) { $fullPath[] = ltrim($last, $separator); } - else if(!isset($fullPath[1]) && $fullPath[0] === '') + else if(!isset($fullPath[1]) && (!isset($fullPath[0]) || $fullPath[0] === '')) { return $separator; }