From 2b00b8f353292053f8cc93569931b25e8667ffb8 Mon Sep 17 00:00:00 2001 From: Brian Huisman Date: Thu, 15 Feb 2024 09:37:07 -0500 Subject: [PATCH] Update src/Smalot/PdfParser/PDFObject.php Use strict false check. Co-authored-by: Konrad Abicht --- src/Smalot/PdfParser/PDFObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Smalot/PdfParser/PDFObject.php b/src/Smalot/PdfParser/PDFObject.php index 4d71d854..8d1d14de 100644 --- a/src/Smalot/PdfParser/PDFObject.php +++ b/src/Smalot/PdfParser/PDFObject.php @@ -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 ''; }