mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-23 21:53:40 +00:00
build: Updating mediawiki/mediawiki-phan-config to 0.5.0
Change-Id: Ie4cc688e4fecbdf53f77c4726292a8d3fcd6a06d
This commit is contained in:
parent
0b3b7f67f9
commit
84f30fd4c5
|
@ -4,7 +4,7 @@
|
|||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/mediawiki-codesniffer": "24.0.0",
|
||||
"mediawiki/minus-x": "0.3.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.4.0"
|
||||
"mediawiki/mediawiki-phan-config": "0.5.0"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
|
|
|
@ -257,7 +257,7 @@ class TitleBlacklistEntry {
|
|||
* @return string Custom message for this entry
|
||||
*/
|
||||
public function getCustomMessage() {
|
||||
return isset( $this->mParams['errmsg'] ) ? $this->mParams['errmsg'] : null;
|
||||
return $this->mParams['errmsg'] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -288,6 +288,6 @@ class TitleBlacklistEntry {
|
|||
// For grep:
|
||||
// titleblacklist-forbidden-edit, titleblacklist-forbidden-move,
|
||||
// titleblacklist-forbidden-upload, titleblacklist-forbidden-new-account
|
||||
return $message ? $message : "titleblacklist-forbidden-{$operation}";
|
||||
return $message ?: "titleblacklist-forbidden-{$operation}";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue