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 */ /** @inheritDoc */
public function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ): void { public function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ): void {
$extensionRegistry = ExtensionRegistry::getInstance(); $extensionRegistry = ExtensionRegistry::getInstance();
$messages = []; $messages = [
'colon-separator',
$messages[] = 'colon-separator'; 'captcha-edit',
$messages[] = 'captcha-edit'; 'captcha-label'
$messages[] = 'captcha-label'; ];
if ( $extensionRegistry->isLoaded( 'QuestyCaptcha' ) ) { if ( $extensionRegistry->isLoaded( 'QuestyCaptcha' ) ) {
$messages[] = 'questycaptcha-edit'; $messages[] = 'questycaptcha-edit';