From e627f6b99d7746eb2e32990dbddab6c08c9953c1 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Tue, 12 Mar 2024 20:42:45 +0100 Subject: [PATCH] build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0 Change-Id: I1438abb264edc6c64bbe0a1bef98be1397c712bd --- composer.json | 7 ++++++- includes/TitleBlacklistEntry.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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() . '.'