From 1236f24ec3e7a828a0587852504a8961b7d73dc0 Mon Sep 17 00:00:00 2001 From: addshore Date: Mon, 6 Mar 2017 13:36:57 +0100 Subject: [PATCH] Add array typehint to 2 DatabaseUpdater methods Change-Id: I29abd4525b46e9b47cf3933e5fcb791fd6ea3fb5 --- includes/installer/DatabaseUpdater.php | 4 ++-- includes/installer/OracleUpdater.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index f8ab1f283e..98d354cb95 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -392,7 +392,7 @@ abstract class DatabaseUpdater { * Writes the schema updates desired to a file for the DB Admin to run. * @param array $schemaUpdate */ - private function writeSchemaUpdateFile( $schemaUpdate = [] ) { + private function writeSchemaUpdateFile( array $schemaUpdate = [] ) { $updates = $this->updatesSkipped; $this->updatesSkipped = []; @@ -425,7 +425,7 @@ abstract class DatabaseUpdater { * * @param array $what What updates to perform */ - public function doUpdates( $what = [ 'core', 'extensions', 'stats' ] ) { + public function doUpdates( array $what = [ 'core', 'extensions', 'stats' ] ) { $this->db->setSchemaVars( $this->getSchemaVars() ); $what = array_flip( $what ); diff --git a/includes/installer/OracleUpdater.php b/includes/installer/OracleUpdater.php index 79ae175d53..e262eda635 100644 --- a/includes/installer/OracleUpdater.php +++ b/includes/installer/OracleUpdater.php @@ -285,7 +285,7 @@ class OracleUpdater extends DatabaseUpdater { * * @param array $what */ - public function doUpdates( $what = [ 'core', 'extensions', 'purge', 'stats' ] ) { + public function doUpdates( array $what = [ 'core', 'extensions', 'purge', 'stats' ] ) { parent::doUpdates( $what ); $this->db->query( 'BEGIN fill_wiki_info; END;' ); -- 2.20.1