Estimated reading time: 0 minutes, 6 seconds
Problem: Warning: Illegal offset type when using object into array.example; $array[] = $variable
Solution: use (string) $variableexample; $array[] = (string) $variable