title: How to declare unlimited/variadic parameters in DocBlock?
body: <p>Lets say I have a function (obviously a trivial example):</p>
  
  <pre><code>public function dot(){
      return implode('.', func_get_args());
  }
  </code></pre>
  
  <p>Now I know I could modify this to be </p>
  
  <pre><code>public function dot(array $items){
      return implode('.', $array);
  }
  </code></pre>
  
  <p>but with some functions that is not an option. So, how would you document the first version of the function with a docBlock so an IDE can interpret that it can receive unlimited parameters?</p>
  
  <p>I have seen some methods that use:</p>
  
  <pre><code>/**
   * Joins one or more strings together with a . (dot)
   * @param string $string1
   * @param string $string2
   * @param string $_ [optional]
   * @return string
   */
  public function dot($string1, $string2, $_ = null) {
      return implode('.', func_get_args());
  }
  </code></pre>
  
  <p>Which in an IDE looks like <img src="https://i.stack.imgur.com/JEHsg.png" alt="autocomplete example"></p>
  
  <p>But that feels like a hack to me, is there no way to do it just with docBlock?</p>