From d3fdcb9d39a96bd88c56059e76729c492192d798 Mon Sep 17 00:00:00 2001 From: schechterab <78549855+schechterab@users.noreply.github.com> Date: Mon, 15 Feb 2021 15:12:46 -0500 Subject: [PATCH] Update Utilities.php update array ref for php8 compatibility --- QuickBooks/Utilities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QuickBooks/Utilities.php b/QuickBooks/Utilities.php index 9d6bf36f..693287a6 100755 --- a/QuickBooks/Utilities.php +++ b/QuickBooks/Utilities.php @@ -87,7 +87,7 @@ static public function mask($message) foreach ($masks as $key) { - if ($key{0} == '<') + if ($key[0] == '<') { // It's an XML tag $contents = QuickBooks_Utilities::_extractTagContents(trim($key, '<> '), $message); @@ -301,7 +301,7 @@ static public function intervalToSeconds($interval) $count = strlen($interval); for ($i = 0; $i < $count; $i++) { - if (ord($interval{$i}) < 97 or ord($interval{$i}) > 122) + if (ord($interval[$i]) < 97 or ord($interval[$i]) > 122) { $justletters = false; }