diff --git a/src/Tools/String.php b/src/Tools/String.php index 41fd465..678fd26 100644 --- a/src/Tools/String.php +++ b/src/Tools/String.php @@ -18,7 +18,7 @@ class Tools_String { $res[] = static::strToArray(implode(',', $subarr[$in_subarr])); $in_subarr--; } - } elseif ($tok{0} === '{') { // we're inside a new sub-array + } elseif ($tok[0] === '{') { // we're inside a new sub-array if ('}' !== substr($tok, -1, 1)) { $in_subarr++; // if sub-array has more than one element