title: Function return type hinting for an array of objects in PHP7
body: <p>I am very happy with the new features in PHP 7. But I am confused on how to return an array of objects in PHP 7.</p>
  
  <p>For example, we have a class <code>Item</code>, and we want to return an array of objects of this class from our function:</p>
  
  <pre><code>function getItems() : Item[] {
  }
  </code></pre>
  
  <p>But it does not work this way.</p>