Skip to content

Commit

Permalink
Fix: Warning: strpos(): Empty needle
Browse files Browse the repository at this point in the history
Kept getting this warning when doing `--include="*.blade.php"`, among other things

Related to #125 and #129
  • Loading branch information
dac514 authored Mar 22, 2019
1 parent c6b15c7 commit e510bf2
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 e510bf2

Please sign in to comment.