diff --git a/src/IterableCodeExtractor.php b/src/IterableCodeExtractor.php index c6cb1363..a3d44e3d 100644 --- a/src/IterableCodeExtractor.php +++ b/src/IterableCodeExtractor.php @@ -176,7 +176,7 @@ protected static function containsMatchingChildren( SplFileInfo $dir, array $mat // Or the start of the matcher until the first wildcard matches the start of the path. if ( ( '' !== $root_relative_path && 0 === strpos( $base, $root_relative_path ) ) || - 0 === strpos( $root_relative_path, $base ) + ( '' !== $base && 0 === strpos( $root_relative_path, $base ) ) ) { return true; }