From a306ea53afb002ab9ad5c4313edcb0cd40983ff9 Mon Sep 17 00:00:00 2001 From: Alexey Chelnakov Date: Fri, 27 Jan 2023 17:09:14 +0300 Subject: [PATCH] fix Array and string offset access syntax with curly braces is no longer supported --- src/Fetch/UTF8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fetch/UTF8.php b/src/Fetch/UTF8.php index c7d88e0..8e5a9df 100644 --- a/src/Fetch/UTF8.php +++ b/src/Fetch/UTF8.php @@ -18,7 +18,7 @@ final class UTF8 $buf = ''; for ($i = 0, $max = strlen($text); $i < $max; $i++) { - $c1 = $text{$i}; + $c1 = $text[$i]; if ($c1 <= "\x7F") { // single byte $buf .= $c1;