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

Change-Id: I6b1cae8b9cc7a99e839e86f2db3f8d9e9b3ee546
This commit is contained in:
Umherirrender 2024-03-11 20:43:15 +01:00
parent c555fd4840
commit 407a1011e9
2 changed files with 7 additions and 4 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

@ -71,9 +71,7 @@ class PopupsHooks implements
// FIXME: If the module ext.cite.referencePreviews does not exist register reference previews.
// This code can be removed once T355194 is complete.
$others = $rl->getModule( 'ext.cite.referencePreviews' ) ?
[] : [
'ext.popups.referencePreviews'
];
[] : [ 'ext.popups.referencePreviews' ];
return array_merge( ExtensionRegistry::getInstance()->getAttribute(
'PopupsPluginModules'