8000 debug · symfony/symfony@a8ea69f · GitHub
[go: up one dir, main page]

Skip to content

Commit a8ea69f

Browse files
committed
debug
1 parent 3ee1e1f commit a8ea69f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Finder/Iterator/VcsIgnoredFilterIterator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ public function __construct(\Iterator $iterator, string $baseDir)
3535

3636
public function accept(): bool
3737
{
38-
$file = $this->current();
38+
$file = $this->normalizePath($this->current());
3939

4040
$fileRealPath = $file->getRealPath();
4141
if ($file->isDir()) {
4242
$fileRealPath .= '/';
4343
}
4444

45-
$parentDirectory = $this->normalizePath($fileRealPath);
45+
$parentDirectory = $fileRealPath;
4646

4747
while (true) {
4848
$newParentDirectory = \dirname($parentDirectory);
4949

50-
// `dirname('/') === '/'
50+
// dirname('/') = '/'
5151
if ($newParentDirectory === $parentDirectory) {
5252
break;
5353
}

0 commit comments

Comments
 (0)
0