fix Array and string offset access syntax with curly braces is no longer supported

This commit is contained in:
Alexey Chelnakov 2023-01-27 17:09:14 +03:00
parent 9ccbd2a80b
commit a306ea53af

View File

@ -18,7 +18,7 @@ final class UTF8
$buf = ''; $buf = '';
for ($i = 0, $max = strlen($text); $i < $max; $i++) { for ($i = 0, $max = strlen($text); $i < $max; $i++) {
$c1 = $text{$i}; $c1 = $text[$i];
if ($c1 <= "\x7F") { // single byte if ($c1 <= "\x7F") { // single byte
$buf .= $c1; $buf .= $c1;