diff --git a/src/Util.php b/src/Util.php index 72f9ed5e6..2300bbb9a 100644 --- a/src/Util.php +++ b/src/Util.php @@ -75,7 +75,7 @@ public static function finder($directory, $exclude = null) $finder = new Finder(); $finder->sortByName(); } - $finder->files(); + $finder->files()->name('*.php'); if (is_string($directory)) { if (is_file($directory)) { // Scan a single file? $finder->append([$directory]);