jenkins-bot has submitted this change and it was merged.
Change subject: interwiki.php autogenerator now uses short array syntax
......................................................................
interwiki.php autogenerator now uses short array syntax
In operations/mediawiki-config repo, commit c3a43aa6 switched all the
wmf-config/ folder to short array syntax.
As dumpInterwiki is used to regenerate wmf-config/interwiki.php file,
it's so updated to play along and produce also short array syntax.
Bug: T139778
Change-Id: Ied9f0611401da16192ec5cd4fab9ac8ccbe6c46d
---
M dumpInterwiki.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/dumpInterwiki.php b/dumpInterwiki.php
index c950a19..fb3c0bf 100644
--- a/dumpInterwiki.php
+++ b/dumpInterwiki.php
@@ -246,7 +246,7 @@
} else {
$this->output( "<?php\n" );
$this->output( '// Automatically generated by
dumpInterwiki.php on ' . date(DATE_RFC2822) . "\n" );
- $this->output( "return array(\n" );
+ $this->output( "return [\n" );
}
if ( $this->hasOption( 'protocolrelative' ) ) {
@@ -403,7 +403,7 @@
}
}
if ( !$this->dbFile ) {
- $this->output( ");\n" );
+ $this->output( "];\n" );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/298032
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ied9f0611401da16192ec5cd4fab9ac8ccbe6c46d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: Dereckson <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits