Skip to content

Commit 5437f42

Browse files
committed
Path check
1 parent 1c3ada3 commit 5437f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Path.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static function custom($separator, array $pathComponents)
126126
{
127127
$fullPath[] = ltrim($last, $separator);
128128
}
129-
else if(!isset($fullPath[1]) && $fullPath[0] === '')
129+
else if(!isset($fullPath[1]) && (!isset($fullPath[0]) || $fullPath[0] === ''))
130130
{
131131
return $separator;
132132
}

0 commit comments

Comments
 (0)