Skip to content

Commit 94f9d29

Browse files
committed
Fixed missing slash on end of directory path
1 parent 1ab36ea commit 94f9d29

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to `php-db-migration-validator` will be documented in this f
44

55
## [Unreleased]
66

7+
## [1.0.2] - 2022-01-16
8+
9+
### Fixed
10+
11+
- Fixed missing trailing slash on end of directory path
12+
713
## [1.0.1] - 2022-01-16
814

915
### Fixed
@@ -14,5 +20,6 @@ All notable changes to `php-db-migration-validator` will be documented in this f
1420

1521
- Initial release
1622

17-
[Unreleased]: https://github.com/antonkomarev/php-db-migration-validator/compare/1.0.1...master
23+
[Unreleased]: https://github.com/antonkomarev/php-db-migration-validator/compare/1.0.2...master
24+
[1.0.2]: https://github.com/cybercog/laravel-love/compare/1.0.1...1.0.2
1825
[1.0.1]: https://github.com/cybercog/laravel-love/compare/1.0.0...1.0.1

src/FileFinder.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ private function listFilePaths(
4848
string $inputPath
4949
): array {
5050
if (is_dir($inputPath)) {
51-
$inputPath .= '*.php';
51+
$inputPath = rtrim($inputPath, '/');
52+
$inputPath .= '/*.php';
5253
}
5354

5455
return glob($inputPath);

0 commit comments

Comments
 (0)