I\'m trying to simulate this error with a sample php code but haven\'t been successful. Any help would be great.
\"Cannot use string offset as an array\"
Since the release PHP 7.1+, is not more possible to assign a value for an array as follow:
$foo = ""; $foo['key'] = $foo2;
because as of PHP 7.1.0, applying the empty index operator on a string throws a fatal error. Formerly, the string was silently converted to an array.