From: Alangi Derick Date: Mon, 3 Dec 2018 11:47:12 +0000 (+0100) Subject: htmlform: Fix multiple PHPDoc annotations in htmlform module X-Git-Tag: 1.34.0-rc.0~3362^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=f6fcb74728311b696caac49576e6b893cc5ebb14;p=lhc%2Fweb%2Fwiklou.git htmlform: Fix multiple PHPDoc annotations in htmlform module - Add @param annotation for $params variable for __construct() method in the HTMLExpiryField class. - Add @throws annotation for getOptionsOOUI() method that throws a MWException and remove "@return array" as this method only throw an exception now. Change-Id: I292f6ae04b840f6f6f74b7c92f834f056659fbe2 --- diff --git a/includes/htmlform/fields/HTMLExpiryField.php b/includes/htmlform/fields/HTMLExpiryField.php index e7bdb44b85..fb0ca77254 100644 --- a/includes/htmlform/fields/HTMLExpiryField.php +++ b/includes/htmlform/fields/HTMLExpiryField.php @@ -15,6 +15,7 @@ class HTMLExpiryField extends HTMLFormField { /** * Relative Date Time Field. + * @param array $params */ public function __construct( array $params = [] ) { parent::__construct( $params ); diff --git a/includes/htmlform/fields/HTMLMultiSelectField.php b/includes/htmlform/fields/HTMLMultiSelectField.php index 477cc4c1a5..1c4a785fa3 100644 --- a/includes/htmlform/fields/HTMLMultiSelectField.php +++ b/includes/htmlform/fields/HTMLMultiSelectField.php @@ -121,7 +121,7 @@ class HTMLMultiSelectField extends HTMLFormField implements HTMLNestedFilterable /** * Get options and make them into arrays suitable for OOUI. - * @return array Options for inclusion in a select or whatever. + * @throws MWException */ public function getOptionsOOUI() { // Sections make this difficult. See getInputOOUI().