X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLForm.php;h=58c16021fc816d10c3e07f4cc05f86bd40e7b53c;hp=f4dad390cf3e7a2813dfc9ee32f5ab7d275de41e;hb=fa0f6f34972c0e0f4aac24a03b3efdfc45f256f6;hpb=f2d3caf5bcab177c872d5290ac5354bbf1f0967c diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index f4dad390cf..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; @@ -983,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 ) { @@ -1322,7 +1329,7 @@ class HTMLForm extends ContextSource { } return $elementstr - ? Html::rawElement( 'div', [ 'class' => $elementsType ], $elementstr ) + ? Html::rawElement( 'div', [ 'class' => $elementsType . 'box' ], $elementstr ) : ''; }