Skip to content

Commit a899542

Browse files
Merge pull request #22 from milosdjakonovic/master
Allow user level scans
2 parents 28c3514 + be6fd57 commit a899542

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

dist/scanner

15.2 KB
Binary file not shown.

src/Scanner.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ public function mapping()
803803
// Mapping files
804804
if (is_dir(self::$pathScan)) {
805805
$directory = new RecursiveDirectoryIterator(self::$pathScan);
806-
$files = new RecursiveIteratorIterator($directory);
806+
$files = new RecursiveIteratorIterator($directory, RecursiveIteratorIterator::LEAVES_ONLY, RecursiveIteratorIterator::CATCH_GET_CHILD);
807807
$filtered = new CallbackFilterIterator($files, function ($cur) {
808808
$ignore = false;
809809
$wildcard = '.*?'; // '[^\\\\\\/]*'

0 commit comments

Comments
 (0)