diff --git a/composer.json b/composer.json index 824ffe6e..895ace53 100644 --- a/composer.json +++ b/composer.json @@ -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 + } } } diff --git a/includes/TitleBlacklistEntry.php b/includes/TitleBlacklistEntry.php index ef30f3d0..14d9b15b 100644 --- a/includes/TitleBlacklistEntry.php +++ b/includes/TitleBlacklistEntry.php @@ -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() . '.'