PPFrame: Use explicit varargs in method parameters
[lhc/web/wiklou.git] / includes / parser / PPFrame.php
index 3f147f0..51fc0b6 100644 (file)
@@ -21,6 +21,9 @@
 
 /**
  * @ingroup Parser
+ *
+ * @property int $depth
+ * @property PPFrame $parent
  */
 interface PPFrame {
        const NO_ARGS = 1;
@@ -68,41 +71,37 @@ interface PPFrame {
         * Implode with flags for expand()
         * @param string $sep
         * @param int $flags
-        * @param string|PPNode $args,...
-        * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847
+        * @param string|PPNode ...$params
         * @return string
         */
-       public function implodeWithFlags( $sep, $flags /*, ... */ );
+       public function implodeWithFlags( $sep, $flags, ...$params );
 
        /**
         * Implode with no flags specified
         * @param string $sep
-        * @param string|PPNode $args,...
-        * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847
+        * @param string|PPNode ...$params
         * @return string
         */
-       public function implode( $sep /*, ... */ );
+       public function implode( $sep, ...$params );
 
        /**
         * Makes an object that, when expand()ed, will be the same as one obtained
         * with implode()
         * @param string $sep
-        * @param string|PPNode ...$args
-        * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847
+        * @param string|PPNode ...$params
         * @return PPNode
         */
-       public function virtualImplode( $sep /* ...$args */ );
+       public function virtualImplode( $sep, ...$params );
 
        /**
         * Virtual implode with brackets
         * @param string $start
         * @param string $sep
         * @param string $end
-        * @param string|PPNode ...$args
-        * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847
+        * @param string|PPNode ...$params
         * @return PPNode
         */
-       public function virtualBracketedImplode( $start, $sep, $end /* ...$args */ );
+       public function virtualBracketedImplode( $start, $sep, $end, ...$params );
 
        /**
         * Returns true if there are no arguments in this frame