build: Updating mediawiki/mediawiki-phan-config to 0.5.0

Change-Id: Ie4cc688e4fecbdf53f77c4726292a8d3fcd6a06d
This commit is contained in:
libraryupgrader 2019-03-11 03:44:59 +00:00 committed by Kunal Mehta
parent 0b3b7f67f9
commit 84f30fd4c5
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@
"jakub-onderka/php-console-highlighter": "0.3.2", "jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "24.0.0", "mediawiki/mediawiki-codesniffer": "24.0.0",
"mediawiki/minus-x": "0.3.1", "mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-phan-config": "0.4.0" "mediawiki/mediawiki-phan-config": "0.5.0"
}, },
"scripts": { "scripts": {
"fix": [ "fix": [

View file

@ -257,7 +257,7 @@ class TitleBlacklistEntry {
* @return string Custom message for this entry * @return string Custom message for this entry
*/ */
public function getCustomMessage() { 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: // For grep:
// titleblacklist-forbidden-edit, titleblacklist-forbidden-move, // titleblacklist-forbidden-edit, titleblacklist-forbidden-move,
// titleblacklist-forbidden-upload, titleblacklist-forbidden-new-account // titleblacklist-forbidden-upload, titleblacklist-forbidden-new-account
return $message ? $message : "titleblacklist-forbidden-{$operation}"; return $message ?: "titleblacklist-forbidden-{$operation}";
} }
} }