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 Dec 21, 2022
1 parent b6e2cd5 commit 19add39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"require": {
"php": ">=8.0 <8.3",
"ext-tokenizer": "*",
"nette/finder": "^2.5 || ^3.0",
"nette/utils": "^3.0"
"nette/utils": "^4.0"
},
"require-dev": {
"nette/tester": "^2.4",
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 19add39

Please sign in to comment.