mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-23 21:53:40 +00:00
Merge "Update unspecific "array" type documentation"
This commit is contained in:
commit
f233dd5264
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -94,7 +94,7 @@ class ApiQueryTitleBlacklist extends ApiBase {
|
|||
|
||||
/**
|
||||
* @see ApiBase::getExamplesMessages()
|
||||
* @return array
|
||||
* @return string[]
|
||||
*/
|
||||
protected function getExamplesMessages() {
|
||||
return [
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
use MediaWiki\Auth\AuthManager;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue