Fix more LBFactory __construct() IDEA errors
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 10 Oct 2015 00:25:54 +0000 (17:25 -0700)
committerOri.livneh <ori@wikimedia.org>
Sat, 10 Oct 2015 02:58:35 +0000 (02:58 +0000)
Change-Id: Iec0d108d6ad405f77710e4ce111d0adefea3832b

includes/db/loadbalancer/LBFactoryFake.php
includes/db/loadbalancer/LBFactorySingle.php

index d8becf5..41066e0 100644 (file)
@@ -28,9 +28,6 @@
  * LBFactory::enableBackend() to return to normal behavior
  */
 class LBFactoryFake extends LBFactory {
-       public function __construct( array $conf ) {
-       }
-
        public function newMainLB( $wiki = false ) {
                throw new DBAccessError;
        }
index a41dadf..32bce6c 100644 (file)
@@ -33,6 +33,8 @@ class LBFactorySingle extends LBFactory {
         *  - connection: The DatabaseBase connection object
         */
        public function __construct( array $conf ) {
+               parent::__construct( $conf );
+
                $this->lb = new LoadBalancerSingle( $conf );
        }