mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-23 21:53:40 +00:00
build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: I1438abb264edc6c64bbe0a1bef98be1397c712bd
This commit is contained in:
parent
dd1251a162
commit
e627f6b99d
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"mediawiki/mediawiki-codesniffer": "41.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "43.0.0",
|
||||
"mediawiki/mediawiki-phan-config": "0.14.0",
|
||||
"mediawiki/minus-x": "1.1.1",
|
||||
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
||||
|
@ -18,5 +18,10 @@
|
|||
],
|
||||
"phan": "phan -d . --long-progress-bar",
|
||||
"phpcs": "phpcs -sp --cache"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ class TitleBlacklistEntry {
|
|||
|
||||
if ( $status->isOK() ) {
|
||||
// Remove version from return value
|
||||
list( , $title ) = explode( ':', $status->getValue(), 2 );
|
||||
[ , $title ] = explode( ':', $status->getValue(), 2 );
|
||||
} else {
|
||||
wfDebugLog( 'TitleBlacklist', 'AntiSpoof could not normalize "' . $title . '" ' .
|
||||
$status->getMessage( false, false, 'en' )->text() . '.'
|
||||
|
|
Loading…
Reference in a new issue