Skip to content

Commit

Permalink
Path check
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Feb 2, 2021
1 parent 2a31eda commit d501516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,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;
}
Expand Down

0 comments on commit d501516

Please sign in to comment.