Skip to content

Commit 2abfb75

Browse files
committed
Fix path when the absolute path has used
1 parent 14b3221 commit 2abfb75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"mockery/mockery": "^1.0",
4545
"phpstan/phpstan-strict-rules": "^0.12",
4646
"phpunit/phpunit": "^8.0|^9.0",
47-
"rector/rector": "^0.11.2",
47+
"rector/rector": "0.11.32",
4848
"symfony/var-dumper": "^4.2|^5.0",
4949
"thecodingmachine/phpstan-strict-rules": "^0.12.0"
5050
},

src/Infrastructure/Repositories/LocalFilesRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function within(array $paths, array $exclude = []): FilesRepository
6363
$this->fileList['basename'][] = $pathInfo['basename'];
6464
$this->fileList['full_path'][] = $pathInfo['dirname'] . DIRECTORY_SEPARATOR . $pathInfo['basename'];
6565
} else {
66-
$this->directoryList[] = $pathInfo['dirname'] . DIRECTORY_SEPARATOR . $pathInfo['basename'];
66+
$this->directoryList[] = rtrim($pathInfo['dirname'], DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $pathInfo['basename'];
6767
}
6868
}
6969

0 commit comments

Comments
 (0)