installer: Restore PHP 5.3 compatibility in index.php
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 11 Dec 2016 20:29:45 +0000 (21:29 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 11 Dec 2016 20:29:45 +0000 (21:29 +0100)
This file should remain compatible with PHP 5.3, so that we can
actually display the error message about old PHP version, rather than
a syntax error.

Change-Id: If12f79f5d375e925291728aac7c9db18ca226d26

mw-config/index.php

index 926ac43..be9debc 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+// @codingStandardsIgnoreFile Generic.Arrays.DisallowLongArraySyntax
 /**
  * New version of MediaWiki web-based config/installation
  *
@@ -60,7 +61,7 @@ function wfInstallerMain() {
        if ( isset( $_SESSION['installData'][$fingerprint] ) ) {
                $session = $_SESSION['installData'][$fingerprint];
        } else {
-               $session = [];
+               $session = array();
        }
 
        if ( !is_null( $wgRequest->getVal( 'uselang' ) ) ) {