diff --git a/src/Client/Predis.php b/src/Client/Predis.php index ce3a1a1..991cd7f 100644 --- a/src/Client/Predis.php +++ b/src/Client/Predis.php @@ -11,7 +11,7 @@ use Predis\Client; */ class Predis implements ClientInterface { - public function getClient($host = NULL, $port = NULL, $base = NULL, $password = NULL, $persistent = FALSE, $replicationHosts = NULL) { + public function getClient($host = NULL, $port = NULL, $base = NULL, $password = NULL, $replicationHosts = NULL, $persistent = FALSE) { $connectionInfo = [ 'password' => $password, 'host' => $host, diff --git a/src/ClientFactory.php b/src/ClientFactory.php index b0d7117..fabd620 100644 --- a/src/ClientFactory.php +++ b/src/ClientFactory.php @@ -166,8 +166,8 @@ class ClientFactory { $settings['port'], $settings['base'], $settings['password'], - $settings['persistent'], - $settings['replication.host']); + $settings['replication.host'], + $settings['persistent']); } else { self::$_client = self::getClientInterface()->getClient(