aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/patchSql.php
diff options
context:
space:
mode:
authorKunal Mehta <legoktm@member.fsf.org>2016-02-17 01:09:32 -0800
committerKunal Mehta <legoktm@member.fsf.org>2016-02-17 01:33:00 -0800
commit6e9b4f0e9ce4ccd6089c18b205065ef7fa077484 (patch)
tree58645fbce5c12d01b0d0fa87e338d4745e08920d /maintenance/patchSql.php
parent2fd379fa95f223c6b3f3c8eff6de068eca9e1a1a (diff)
downloadmediawikicore-6e9b4f0e9ce4ccd6089c18b205065ef7fa077484.tar.gz
mediawikicore-6e9b4f0e9ce4ccd6089c18b205065ef7fa077484.zip
Convert all array() syntax to []
Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
Diffstat (limited to 'maintenance/patchSql.php')
-rw-r--r--maintenance/patchSql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/patchSql.php b/maintenance/patchSql.php
index f94046a617ec..43fbd38cd181 100644
--- a/maintenance/patchSql.php
+++ b/maintenance/patchSql.php
@@ -46,11 +46,11 @@ class PatchSql extends Maintenance {
public function execute() {
$dbw = $this->getDB( DB_MASTER );
foreach ( $this->mArgs as $arg ) {
- $files = array(
+ $files = [
$arg,
$dbw->patchPath( $arg ),
$dbw->patchPath( "patch-$arg.sql" ),
- );
+ ];
foreach ( $files as $file ) {
if ( file_exists( $file ) ) {
$this->output( "$file ...\n" );