We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37c6e31 commit 66c08e3Copy full SHA for 66c08e3
src/RobotLoader/RobotLoader.php
@@ -300,14 +300,14 @@ private function createFileIterator(string $dir): Nette\Utils\Finder
300
$acceptFiles = preg_split('#[,\s]+#', $acceptFiles);
301
}
302
303
- $iterator = Nette\Utils\Finder::findFiles($acceptFiles)
+ $iterator = Nette\Utils\Finder::findFiles(...$acceptFiles)
304
->filter(function (SplFileInfo $file) use (&$disallow) {
305
return $file->getRealPath() === false
306
? true
307
: !isset($disallow[str_replace('\\', '/', $file->getRealPath())]);
308
})
309
->from($dir)
310
- ->exclude($ignoreDirs)
+ ->exclude(...$ignoreDirs)
311
->filter($filter = function (SplFileInfo $dir) use (&$disallow) {
312
if ($dir->getRealPath() === false) {
313
return true;
0 commit comments