Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isszz committed Aug 17, 2023
1 parent 44c670c commit 2ba0d57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sensitive.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ protected function yieldToReadFile(string $file)
}

while (!feof($handle)) {
if ($line = fgets($handle) and !is_string($line)) {
$line = fgets($handle);
if (!is_string($line)) {
continue;
}

Expand Down

0 comments on commit 2ba0d57

Please sign in to comment.