X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLForm.php;h=b16801a2a85e6192b805c506e1f4d631192adc3a;hb=748c5eae2fd5d897c94c48771161c259941a7488;hp=58c16021fc816d10c3e07f4cc05f86bd40e7b53c;hpb=5155abe0e6ab6589d4104a221df0a0b2c5142c16;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index 58c16021fc..b16801a2a8 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -297,14 +297,10 @@ class HTMLForm extends ContextSource { * Construct a HTMLForm object for given display type. May return a HTMLForm subclass. * * @param string $displayFormat - * @param mixed $arguments,... Additional arguments to pass to the constructor. - * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847 + * @param mixed ...$arguments Additional arguments to pass to the constructor. * @return HTMLForm */ - public static function factory( $displayFormat/*, $arguments...*/ ) { - $arguments = func_get_args(); - array_shift( $arguments ); - + public static function factory( $displayFormat, ...$arguments ) { switch ( $displayFormat ) { case 'vform': return new VFormHTMLForm( ...$arguments );