title: Is there a way for phpDoc to document an array of objects as a parameter?
body: <p>In phpDoc-generated documentation I can cause phpDoc to generate a link to a custom type definition for a given param using </p>
  
  <pre><code>@param CustomType $variablename
  </code></pre>
  
  <p>and that works great.  However, the code I'm currently documenting requires CustomType[] parameters, i.e. an array of said CustomType. I want the documentation to be clear that an array is required, but when I use </p>
  
  <pre><code>@param CustomType[] $variablename
  </code></pre>
  
  <p>phpDoc no longer recognizes the type, and thus can't link to it's definition.  This is pretty important in this case - I'm documenting an API that has some fairly complex types that need to be provided.</p>
  
  <p>I've tried several different syntaxes for this and all either treat the entries as separate variable types or break type recognition in the documentation.</p>
  
  <p>Barring this I'll just note it in the parameter note, but it seems more clear to show the array-ness of the parameter in the type.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>With phpDocumentor 2 (which merged with DocBlox) the</p>
  
  <pre><code>@param CustomType[] $paramName
  </code></pre>
  
  <p>syntax works, and as noted in @Styx's answer PhpStorm supports type-hinting with that syntax.</p>
  
  <p>Accepted answer updated appropriately.</p>