Fixed LBFactory IDE errors
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 24 Aug 2015 22:34:30 +0000 (15:34 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 24 Aug 2015 22:34:30 +0000 (15:34 -0700)
Change-Id: Id28dce99fa4123a3a8fff3f30a8134621bd64b7c

includes/db/LBFactory.php
includes/db/LBFactoryMulti.php

index 0742df2..cf522b2 100644 (file)
@@ -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;
index aa305ab..92fbccd 100644 (file)
@@ -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;