Skip to content

Commit 9d482a3

Browse files
committed
Fixes #908, always set pathinfo dirname.
1 parent 464c6de commit 9d482a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function pathinfo($path)
2626

2727
$pathinfo += pathinfo($pathinfo['basename']);
2828

29-
return $pathinfo;
29+
return $pathinfo + ['dirname' => ''];
3030
}
3131

3232
/**

0 commit comments

Comments
 (0)