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 b0fe332 commit a04eae4Copy full SHA for a04eae4
src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php
@@ -70,8 +70,9 @@ public function current()
70
$subPathname .= $this->directorySeparator;
71
}
72
$subPathname .= $this->getFilename();
73
+ $basePath = $this->rootPath;
74
- if ('/' !== $basePath = $this->rootPath) {
75
+ if ('/' !== $basePath && !str_ends_with($basePath, $this->directorySeparator)) {
76
$basePath .= $this->directorySeparator;
77
78
0 commit comments