mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-25 20:36:01 +03:00
fix Array and string offset access syntax with curly braces is no longer supported
This commit is contained in:
parent
9ccbd2a80b
commit
a306ea53af
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user