8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2adfb37 commit fc745f4Copy full SHA for fc745f4
src/Symfony/Component/Filesystem/Filesystem.php
@@ -400,13 +400,8 @@ public function makePathRelative($endPath, $startPath)
400
$depth = count($startPathArr) - $index;
401
}
402
403
- // When we need to traverse from the start, and we are starting from a root path, don't add '../'
404
- if ('/' === $startPath[0] && 0 === $index && 0 === $depth) {
405
- $traverser = '';
406
- } else {
407
- // Repeated "../" for each level need to reach the common path
408
- $traverser = str_repeat('../', $depth);
409
- }
+ // Repeated "../" for each level need to reach the common path
+ $traverser = str_repeat('../', $depth);
410
411
$endPathRemainder = implode('/', array_slice($endPathArr, $index));
412
0 commit comments