Skip to content

Commit

Permalink
Fixed missing slash on end of directory path
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Jan 16, 2022
1 parent 1ab36ea commit 94f9d29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to `php-db-migration-validator` will be documented in this f

## [Unreleased]

## [1.0.2] - 2022-01-16

### Fixed

- Fixed missing trailing slash on end of directory path

## [1.0.1] - 2022-01-16

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

- Initial release

[Unreleased]: https://github.com/antonkomarev/php-db-migration-validator/compare/1.0.1...master
[Unreleased]: https://github.com/antonkomarev/php-db-migration-validator/compare/1.0.2...master
[1.0.2]: https://github.com/cybercog/laravel-love/compare/1.0.1...1.0.2
[1.0.1]: https://github.com/cybercog/laravel-love/compare/1.0.0...1.0.1
3 changes: 2 additions & 1 deletion src/FileFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ private function listFilePaths(
string $inputPath
): array {
if (is_dir($inputPath)) {
$inputPath .= '*.php';
$inputPath = rtrim($inputPath, '/');
$inputPath .= '/*.php';
}

return glob($inputPath);
Expand Down

0 comments on commit 94f9d29

Please sign in to comment.