Skip to content

Commit

Permalink
Merge pull request #149 from connerbw/patch-1
Browse files Browse the repository at this point in the history
Avoid throwing a notice about `strpos(): Empty needle` when going through include paths
  • Loading branch information
schlessera authored Aug 13, 2019
2 parents 6c1535e + 337a293 commit 502185d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IterableCodeExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 502185d

Please sign in to comment.