From 3c80c91f2521cd930e3999e97d680e0fb59a82b3 Mon Sep 17 00:00:00 2001 From: Matthew Flaschen Date: Thu, 25 Aug 2016 21:28:45 -0400 Subject: [PATCH] SQLite syntax checker: Fix support for multiple files Change-Id: I285965189e4186bc557b8ef86168fb666384e5a8 --- maintenance/sqlite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 454c506365..e74a86cf69 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -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" ); -- 2.20.1