Преглед на файлове

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

Daniele Alessandri преди 15 години
родител
ревизия
c95125bae1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)