Skip to content

Commit

Permalink
uses Finder 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 6, 2022
1 parent f878eb7 commit 061d80f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require": {
"php": ">=8.0 <8.3",
"ext-tokenizer": "*",
"nette/finder": "^2.5 || ^3.0",
"nette/finder": "^3.0",
"nette/utils": "^4.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/RobotLoader/RobotLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ private function createFileIterator(string $dir): Nette\Utils\Finder

$iterator = Nette\Utils\Finder::findFiles(...$this->acceptFiles)
->filter($filter)
->recurseFilter($filter)
->from($dir)
->exclude(...$this->ignoreDirs)
->filter($filter);
->exclude(...$this->ignoreDirs);

$filter(new SplFileInfo($dir));
return $iterator;
Expand Down

0 comments on commit 061d80f

Please sign in to comment.