Skip to content

Commit 6b97c3a

Browse files
committed
added array_fill fix for php < 5.6 in PathResolver
1 parent 9df387c commit 6b97c3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Utils/PathResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function relative($from, $to, $addDot = false)
2727
$upsNumber = count($fromParts) - $i;
2828
return $this->join(array_merge(
2929
$addDot ? ['.'] : [],
30-
array_fill(0, $upsNumber, '..'),
30+
$upsNumber ? array_fill(0, $upsNumber, '..') : [],
3131
$pathToCommon
3232
));
3333
}

0 commit comments

Comments
 (0)