title: PHP: Can I declare an abstract function with a variable number of arguments?
body: <p>I want to be able to declare an abstract function in an parent class, with an unknown number of arguments:</p>
  
  <pre><code>abstract function doStuff(...);
  </code></pre>
  
  <p>and then define an implementation with a set of hinted arguments:</p>
  
  <pre><code> /**
   * @param int $userID
   * @param int $serviceproviderID
   */
  static function doStuff($userID, $serviceproviderID) {}
  </code></pre>
  
  <p>The best approach I've got so far is this,</p>
  
  <pre><code>abstract function doStuff();
  
   /**
   * @param int $userID
   * @param int $serviceproviderID
   */
  static function doStuff() {
      $args = func_get_args();
      ...
  }
  </code></pre>
  
  <p>But every time the function is called, I get a bunch of 'missing argument' warnings because of the hints. Is there a better way?</p>
  
  <p>Edit: The question's wrong, please don't waste your time answering. The following is what I was looking for, and it seems to work without warnings.</p>
  
  <pre><code>abstract class Parent {
      abstract function doStuff();
  }
  
  /**
  * @param type $arg1
  * @param type $arg2
  */
  class Child extends Parent {
      function doStuff($arg1, $arg2) {
          ...
      }
  }
  </code></pre>