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