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
This commit is contained in:
Alangi Derick 2018-12-03 12:47:12 +01:00 committed by D3r1ck01
parent f7ab788bf1
commit f6fcb74728
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@ class HTMLExpiryField extends HTMLFormField {
/**
* Relative Date Time Field.
* @param array $params
*/
public function __construct( array $params = [] ) {
parent::__construct( $params );

View file

@ -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().