We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 246701f commit 601c1ceCopy full SHA for 601c1ce
src/FileSelection.php
@@ -121,7 +121,7 @@ protected function yieldSelectedFiles()
121
$finder->in($this->includedDirectories());
122
123
foreach ($finder->getIterator() as $file) {
124
- if ($this->shouldExclude($file)) {
+ if ($this->shouldExclude($file->getRealPath())) {
125
continue;
126
}
127
@@ -160,7 +160,7 @@ protected function includedDirectories()
160
protected function shouldExclude(string $path): bool
161
{
162
foreach ($this->excludeFilesAndDirectories as $excludedPath) {
163
- if (Str::startsWith(realpath($path), $excludedPath)) {
+ if (Str::startsWith($path, $excludedPath)) {
164
return true;
165
166
0 commit comments