Improve type hints to special page related classes

Change-Id: I96e2ff2fbd6f69e83212b22cf107417014b665e1
This commit is contained in:
Umherirrender 2019-06-03 21:11:10 +02:00
parent 75cffa0b99
commit 41984162af
5 changed files with 5 additions and 4 deletions

View file

@ -1099,7 +1099,7 @@ abstract class ChangesListSpecialPage extends SpecialPage {
* Register all the filters, including legacy hook-driven ones.
* Then create a FormOptions object with options as specified by the user
*
* @param array $parameters
* @param string $parameters
*
* @return FormOptions
*/

View file

@ -751,7 +751,7 @@ class SpecialBlock extends FormSpecialPage {
*
* @param array $data
* @param IContextSource $context
* @return bool|string
* @return bool|array
*/
public static function processForm( array $data, IContextSource $context ) {
global $wgBlockAllowsUTEdit, $wgHideUserContribLimit;

View file

@ -127,7 +127,7 @@ class SpecialPasswordPolicies extends SpecialPage {
* Create a HTML list of password policies for $group
*
* @param array $policies Original $wgPasswordPolicy array
* @param array $group Group to format password policies for
* @param string $group Group to format password policies for
*
* @return string HTML list of all applied password policies
*/

View file

@ -136,7 +136,7 @@ class SpecialProtectedtitles extends SpecialPage {
/**
* @param string $pr_level Determines which option is selected as default
* @return string Formatted HTML
* @return string|array
* @private
*/
function getLevelMenu( $pr_level ) {

View file

@ -30,6 +30,7 @@ use MediaWiki\MediaWikiServices;
* @todo FIXME: Make $requestedNamespace selectable, unify all subclasses into one
*/
class UncategorizedPagesPage extends PageQueryPage {
/** @var int|false */
protected $requestedNamespace = false;
function __construct( $name = 'Uncategorizedpages' ) {