Skip to content

Commit 70cb966

Browse files
committed
2 parents df9253d + 719d2e9 commit 70cb966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FileSelection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected function yieldSelectedFiles()
121121
$finder->in($this->includedDirectories());
122122

123123
foreach ($finder->getIterator() as $file) {
124-
if ($this->shouldExclude($file)) {
124+
if ($this->shouldExclude($file->getRealPath())) {
125125
continue;
126126
}
127127

@@ -160,7 +160,7 @@ protected function includedDirectories()
160160
protected function shouldExclude(string $path): bool
161161
{
162162
foreach ($this->excludeFilesAndDirectories as $excludedPath) {
163-
if (Str::startsWith(realpath($path), $excludedPath)) {
163+
if (Str::startsWith($path, $excludedPath)) {
164164
return true;
165165
}
166166
}

0 commit comments

Comments
 (0)