diff --git a/dist/scanner b/dist/scanner index 3eaa101..a7387aa 100644 Binary files a/dist/scanner and b/dist/scanner differ diff --git a/src/Scanner.php b/src/Scanner.php index a6571df..d0c4ae8 100644 --- a/src/Scanner.php +++ b/src/Scanner.php @@ -803,7 +803,7 @@ public function mapping() // Mapping files if (is_dir(self::$pathScan)) { $directory = new RecursiveDirectoryIterator(self::$pathScan); - $files = new RecursiveIteratorIterator($directory); + $files = new RecursiveIteratorIterator($directory, RecursiveIteratorIterator::LEAVES_ONLY, RecursiveIteratorIterator::CATCH_GET_CHILD); $filtered = new CallbackFilterIterator($files, function ($cur) { $ignore = false; $wildcard = '.*?'; // '[^\\\\\\/]*'