X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLForm.php;h=04be6c4e6097940f755a6026dc90b9e51184ee29;hb=a5230acd936b5b9270037c35b9d2d419f4c8d9a6;hp=a7cef3cbe65c60bc41e1b2bc4c83c7456f21a193;hpb=9ded67d0da1e75fa3a23e915b498ddf7fd3a348b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index a7cef3cbe6..04be6c4e60 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -23,7 +23,7 @@ /** * Object handling generic submission, CSRF protection, layout and - * other logic for UI forms. in a reusable manner. + * other logic for UI forms in a reusable manner. * * In order to generate the form, the HTMLForm object takes an array * structure detailing the form fields available. Each element of the @@ -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 ) {