Merge "Hooks: Initialise array inline"

This commit is contained in:
jenkins-bot 2024-12-13 17:08:14 +00:00 committed by Gerrit Code Review
commit 233991f510

View file

@ -234,11 +234,11 @@ class Hooks implements
/** @inheritDoc */
public function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ): void {
$extensionRegistry = ExtensionRegistry::getInstance();
$messages = [];
$messages[] = 'colon-separator';
$messages[] = 'captcha-edit';
$messages[] = 'captcha-label';
$messages = [
'colon-separator',
'captcha-edit',
'captcha-label'
];
if ( $extensionRegistry->isLoaded( 'QuestyCaptcha' ) ) {
$messages[] = 'questycaptcha-edit';