title: PHP - Type hint for Laravel Collection or Array
body: <p>I would like to create a function which accepts any traversable object as parameter, for example Laravel Collection/Array. Is there any way to type hint this condition in the function parameter??</p>
  
  <p>I want the effect of both the following in single definition:</p>
  
  <pre><code>function test(array $traversable)
  {
      print_r($traversable);
  }
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>function test(Illuminate\Support\Collection $traversable)
  {
      print_r($traversable);
  }
  </code></pre>
  
  <p>AND the DocBlock should be</p>
  
  <pre><code>/**
   * Function to do something
   * 
   * @param Collection|Array $traversable Traversable parameter
   * @return null Absolutely nothing
   */
  </code></pre>