Explorar o código

Allow a null parameters argument for the ConnectionParameters constructor (set to default).

Daniele Alessandri %!s(int64=15) %!d(string=hai) anos
pai
achega
c95125bae1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -678,7 +678,7 @@ class ConnectionParameters {
     const DEFAULT_TIMEOUT = 5;
     private $_parameters;
 
-    public function __construct($parameters) {
+    public function __construct($parameters = null) {
         $parameters = $parameters ?: array();
         $this->_parameters = is_array($parameters) 
             ? self::filterConnectionParams($parameters)