here's my code:
$menu .= $this->$item['type']($item);
$item['type'] is a string - 'single' and it uses method single(). Yet the browser shows me this error:
Array to string conversion
I have no idea why, since single returns a string, $item['type'] also is a string. I even tried checking this:
var_dump($this->$item['type']([]));
and it still returns the same error. Do you know why?