Merge "Update unspecific "array" type documentation"

This commit is contained in:
jenkins-bot 2019-06-06 01:17:45 +00:00 committed by Gerrit Code Review
commit f233dd5264
4 changed files with 5 additions and 6 deletions

View file

@ -15,10 +15,10 @@
* Implements a title blacklist for MediaWiki
*/
class TitleBlacklist {
/** @var array */
/** @var TitleBlacklistEntry[] */
private $mBlacklist = null;
/** @var array */
/** @var TitleBlacklistEntry[] */
private $mWhitelist = null;
/** @var TitleBlacklist */
@ -318,7 +318,7 @@ class TitleBlacklist {
* @param TitleBlacklistEntry[] $blacklist
* @return string[] List of invalid entries; empty array means blacklist is valid
*/
public function validate( $blacklist ) {
public function validate( array $blacklist ) {
$badEntries = [];
foreach ( $blacklist as $e ) {
Wikimedia\suppressWarnings();

View file

@ -46,8 +46,6 @@ class TitleBlacklistEntry {
private $mSource;
/**
* Construct a new TitleBlacklistEntry.
*
* @param string $regex Regular expression to match
* @param array $params Parameters for this entry
* @param string $raw Raw contents of this line

View file

@ -94,7 +94,7 @@ class ApiQueryTitleBlacklist extends ApiBase {
/**
* @see ApiBase::getExamplesMessages()
* @return array
* @return string[]
*/
protected function getExamplesMessages() {
return [

View file

@ -1,4 +1,5 @@
<?php
use MediaWiki\Auth\AuthManager;
/**