SQLite syntax checker: Fix support for multiple files
authorMatthew Flaschen <mflaschen@wikimedia.org>
Fri, 26 Aug 2016 01:28:45 +0000 (21:28 -0400)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Fri, 26 Aug 2016 01:28:45 +0000 (21:28 -0400)
Change-Id: I285965189e4186bc557b8ef86168fb666384e5a8

maintenance/sqlite.php

index 454c506..e74a86c 100644 (file)
@@ -132,7 +132,7 @@ class SqliteMaintenance extends Maintenance {
                        $this->error( "Error: SQLite support not found\n" );
                }
                $files = [ $this->getOption( 'check-syntax' ) ];
-               $files += $this->mArgs;
+               $files = array_merge( $files, $this->mArgs );
                $result = Sqlite::checkSqlSyntax( $files );
                if ( $result === true ) {
                        $this->output( "SQL syntax check: no errors detected.\n" );