@hube2
typically its something like this:
$array = array('label' => 'value');
$string = "value";
var_dump($array['label']);
var_dump($string['label']);
php >= 8.0 “Cannot access offset of type string on string”
php < 8.0 “Warning: Illegal string offset”
@sina_saeedi82 could you share more code?