dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump and prep 1.34.1
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
HTMLForm.php
diff --git
a/includes/htmlform/HTMLForm.php
b/includes/htmlform/HTMLForm.php
index
58c1602
..
b16801a
100644
(file)
--- 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
* 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
*/
* @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 );
switch ( $displayFormat ) {
case 'vform':
return new VFormHTMLForm( ...$arguments );