Procházet zdrojové kódy

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

Daniele Alessandri před 15 roky
rodič
revize
c95125bae1
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)