From 513fcc3846f06620a15d519ca175d6f92323750b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 24 Aug 2015 15:34:30 -0700 Subject: [PATCH] Fixed LBFactory IDE errors Change-Id: Id28dce99fa4123a3a8fff3f30a8134621bd64b7c --- includes/db/LBFactory.php | 2 +- includes/db/LBFactoryMulti.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/db/LBFactory.php b/includes/db/LBFactory.php index 0742df279f..cf522b2087 100644 --- a/includes/db/LBFactory.php +++ b/includes/db/LBFactory.php @@ -208,7 +208,7 @@ abstract class LBFactory { */ public function hasMasterChanges() { $ret = false; - $this->forEachLB( function ( $lb ) use ( &$ret ) { + $this->forEachLB( function ( LoadBalancer $lb ) use ( &$ret ) { $ret = $ret || $lb->hasMasterChanges(); } ); return $ret; diff --git a/includes/db/LBFactoryMulti.php b/includes/db/LBFactoryMulti.php index aa305ab112..92fbccd690 100644 --- a/includes/db/LBFactoryMulti.php +++ b/includes/db/LBFactoryMulti.php @@ -232,7 +232,7 @@ class LBFactoryMulti extends LBFactory { public function getMainLB( $wiki = false ) { $section = $this->getSectionForWiki( $wiki ); if ( !isset( $this->mainLBs[$section] ) ) { - $lb = $this->newMainLB( $wiki, $section ); + $lb = $this->newMainLB( $wiki ); $lb->parentInfo( array( 'id' => "main-$section" ) ); $this->chronProt->initLB( $lb ); $this->mainLBs[$section] = $lb; -- 2.20.1