From f376be164eacf51d7354c728094e697ee2336218 Mon Sep 17 00:00:00 2001 From: Jan Hicken Date: Sun, 31 Jan 2021 11:46:32 +0100 Subject: [PATCH] Use brackets instead of curly braces for string offset access Curly braces have been deprecated in PHP 7.4 and unsupported in PHP 8.0. --- inc/check_UTF8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/check_UTF8.php b/inc/check_UTF8.php index e3c93dbf..62dbfc00 100644 --- a/inc/check_UTF8.php +++ b/inc/check_UTF8.php @@ -67,7 +67,7 @@ function utf8ToUnicode(&$str) $len = strlen($str); for($i = 0; $i < $len; $i++) { - $in = ord($str{$i}); + $in = ord($str[$i]); if (0 == $mState) { // When mState is zero we expect either a US-ASCII character or a // multi-octet sequence.