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 Jan 17, 2023
1 parent e8b61f3 commit 0d4ade6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions composer.json
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
Expand Up @@ -272,9 +272,9 @@ private function createFileIterator(string $dir): Nette\Utils\Finder

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

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

0 comments on commit 0d4ade6

Please sign in to comment.