Forráskód Böngészése

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

Daniele Alessandri 15 éve
szülő
commit
c95125bae1
1 módosított fájl, 1 hozzáadás és 1 törlés
  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)