title: Type hinting - specify an array of objects
body: <p>How can I specify the argument type as an array?
  Say I have a class named 'Foo':</p>
  
  <pre><code>class Foo {}
  </code></pre>
  
  <p>and then I have a function that accepts that class type as an argument:</p>
  
  <pre><code>function getFoo(Foo $f) {}
  </code></pre>
  
  <p>When I pass in an array of 'Foo's I get an error, saying:</p>
  
  <blockquote>
    <p><strong>Catchable fatal error</strong>: Argument 1 passed to getFoo()
    must be an instance of Foo, array given</p>
  </blockquote>
  
  <p>Is there a way to overcome this issue? maybe something like</p>
  
  <pre><code>function getFoo(Foo $f[]) {}
  </code></pre>