From 4bdfceaf54a40fc6d8351d4157f67696f7791173 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Fri, 15 Dec 2023 09:28:31 +0100 Subject: [PATCH] - PHP 8.2 fixes --- src/fpdm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fpdm.php b/src/fpdm.php index fb8627d..254578c 100644 --- a/src/fpdm.php +++ b/src/fpdm.php @@ -113,6 +113,8 @@ class FPDM { var $needAppearancesTrue = false; //boolean, indicates if /NeedAppearances is already set to true var $isUTF8 = false; //boolean (true for UTF-8, false for ISO-8859-1) + protected int $n = 0; + /** * Constructor * @@ -1123,7 +1125,7 @@ function _bin2hex($str) { $hex = ""; $i = 0; do { - $hex .= sprintf("%02X", ord($str[$i])); + $hex .= sprintf("%02X", ord($str[$i]??'')); $i++; } while ($i < strlen($str)); return $hex;