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

Change-Id: I137fe0fe2d6486b6a2a90d57582d837ec22bd1e0
This commit is contained in:
Umherirrender 2024-03-11 20:42:17 +01:00
parent 127b836696
commit ef40cf4a67
2 changed files with 7 additions and 2 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"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

View file

@ -379,7 +379,7 @@ class ExprParser {
}
// Finish off the operator array
// phpcs:ignore MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures
// phpcs:ignore Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition
while ( $op = array_pop( $operators ) ) {
if ( $op === self::EXPR_OPEN ) {
throw new ExprError( 'unclosed_bracket' );