X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLForm.php;h=58c16021fc816d10c3e07f4cc05f86bd40e7b53c;hb=3dbc58222c0270cedda17e5dfd397ffdf1d11ad9;hp=ed151e6366c2f2d96c3f0b4f6b4faf48e94924b9;hpb=b14dd60f43a42bf9e37476529de96a23702eabdf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index ed151e6366..58c16021fc 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 ) { @@ -1321,7 +1329,7 @@ class HTMLForm extends ContextSource { } return $elementstr - ? Html::rawElement( 'div', [ 'class' => $elementsType ], $elementstr ) + ? Html::rawElement( 'div', [ 'class' => $elementsType . 'box' ], $elementstr ) : ''; }