Merge "Don't check namespace in SpecialWantedtemplates"
[lhc/web/wiklou.git] / includes / clientpool / RedisConnectionPool.php
index 0d00d11..ec0573e 100644 (file)
@@ -39,7 +39,7 @@ use Psr\Log\LoggerInterface;
  * @ingroup Redis
  * @since 1.21
  */
-class RedisConnectionPool {
+class RedisConnectionPool implements LoggerAwareInterface {
        /**
         * @name Pool settings.
         * Settings there are shared for any connection made in this pool.
@@ -218,7 +218,7 @@ class RedisConnectionPool {
                } else {
                        // TCP connection
                        $hostPort = IP::splitHostAndPort( $server );
-                       if ( !$hostPort ) {
+                       if ( !$server || !$hostPort ) {
                                throw new MWException( __CLASS__ . ": invalid configured server \"$server\"" );
                        }
                        list( $host, $port ) = $hostPort;
@@ -331,7 +331,7 @@ class RedisConnectionPool {
         * @deprecated since 1.23
         */
        public function handleException( $server, RedisConnRef $cref, RedisException $e ) {
-               return $this->handleError( $cref, $e );
+               $this->handleError( $cref, $e );
        }
 
        /**