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

Change-Id: I3fd4f1a1eeca8d82961eef6a0fa4f1a469259b58
This commit is contained in:
Umherirrender 2024-03-12 20:51:29 +01:00
parent 42df4785e3
commit 11061d535b
2 changed files with 8 additions and 3 deletions

View file

@ -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 --ignore=*/node_modules/"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

View file

@ -284,7 +284,7 @@ class Hooks implements
}
$version = $matches[1];
foreach ( $rules as $rule ) {
list( $op, $matchVersion ) = $rule;
[ $op, $matchVersion ] = $rule;
if (
( $op === '<' && $version < $matchVersion ) ||
( $op === '>' && $version > $matchVersion ) ||
@ -1219,7 +1219,7 @@ class Hooks implements
'lib/ve/lib/jquery.uls/src/jquery.uls.data.js',
'lib/ve/lib/jquery.uls/src/jquery.uls.data.utils.js',
],
] ] );
] ] );
}
}