build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0

Change-Id: Iddcde8e23176b699f886ff7901bfaa354f6e3a69
This commit is contained in:
Umherirrender 2024-03-11 22:44:46 +01:00
parent 863966a81b
commit dfdbb1d686
2 changed files with 7 additions and 2 deletions

View file

@ -4,7 +4,7 @@
"description": "Allows users to do a global string find-and-replace on all the pages of a wiki",
"license": "GPL-2.0-or-later",
"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",
@ -22,5 +22,10 @@
],
"phan": "phan -d . --long-progress-bar",
"phpcs": "phpcs -sp --cache"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

View file

@ -155,7 +155,7 @@ class ReplaceAll extends Maintenance {
}
$this->defaultContinue = true;
// phpcs:ignore MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures
// phpcs:ignore Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition
while ( ( $line = fgets( $handle ) ) !== false ) {
$field = explode( "\t", substr( $line, 0, -1 ) );
if ( !isset( $field[1] ) ) {