Skip to content

Commit

Permalink
Update src/Smalot/PdfParser/PDFObject.php
Browse files Browse the repository at this point in the history
Use strict false check.

Co-authored-by: Konrad Abicht <[email protected]>
  • Loading branch information
GreyWyvern and k00ni authored Feb 15, 2024
1 parent fd4ae8f commit 2b00b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Smalot/PdfParser/PDFObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private function formatContent(?string $content): string
// indicates the beginning of a string. Then test what remains
// for valid UTF-8. If it's not UTF-8, return an empty string
// as this $content is most likely binary.
if (!mb_check_encoding(preg_replace('/\(.*$/s', '', $content), 'UTF-8')) {
if (false === mb_check_encoding(preg_replace('/\(.*$/s', '', $content), 'UTF-8')) {
return '';
}

Expand Down

0 comments on commit 2b00b8f

Please sign in to comment.