X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLForm.php;h=04be6c4e6097940f755a6026dc90b9e51184ee29;hb=509b2f7fe247bfe89c6bedd21d4bfd22d435aa4d;hp=ed151e6366c2f2d96c3f0b4f6b4faf48e94924b9;hpb=a6a6c19c794619c24881d2d984dc18ceb3b6419b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index ed151e6366..04be6c4e60 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -242,6 +242,10 @@ class HTMLForm extends ContextSource { protected $mUseMultipart = false; protected $mHiddenFields = []; + /** + * @var array[] + * @phan-var array + */ protected $mButtons = []; protected $mWrapperLegend = false; @@ -294,6 +298,7 @@ class HTMLForm extends ContextSource { * * @param string $displayFormat * @param mixed $arguments,... Additional arguments to pass to the constructor. + * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847 * @return HTMLForm */ public static function factory( $displayFormat/*, $arguments...*/ ) { @@ -982,6 +987,9 @@ class HTMLForm extends ContextSource { * - attribs: (array, optional) Additional HTML attributes. * - flags: (string|string[], optional) OOUI flags. * - framed: (boolean=true, optional) OOUI framed attribute. + * @codingStandardsIgnoreStart + * @phan-param array{name:string,value:string,label-message?:string,label?:string,label-raw?:string,id?:string,attribs?:array,flags?:string|string[],framed?:bool} $data + * @codingStandardsIgnoreEnd * @return HTMLForm $this for chaining calls (since 1.20) */ public function addButton( $data ) {