PHP Deprecated: Array and string offset access syntax with curly braces is deprecated

This commit is contained in:
2022-06-14 16:33:31 +02:00
parent 42766d07a5
commit a60db30785
8 changed files with 24 additions and 24 deletions

View File

@@ -496,7 +496,7 @@ class Console
$this->moveCursor ($cursorPos);
}
// }}}
elseif (ord ($char{0}) === 27)
elseif (ord ($char[0]) === 27)
{
// ESC SEQUENCE
$sequence = "";
@@ -1014,9 +1014,9 @@ class Console
while ($token)
{
// find double quoted tokens
if ($token{0}=='"') { $token .= ' '.strtok('"').'"'; }
if ($token[0]=='"') { $token .= ' '.strtok('"').'"'; }
// find single quoted tokens
if ($token{0}=="'") { $token .= ' '.strtok("'")."'"; }
if ($token[0]=="'") { $token .= ' '.strtok("'")."'"; }
$tokens[] = $token;
$token = strtok(' ');
}