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.
This commit is contained in:
Jan Hicken 2021-01-31 11:46:32 +01:00 committed by Florian Schlichting
parent 39bfe88887
commit f376be164e

View File

@ -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.