Explorar el Código

Minor internal change.

Check directly the private parameters array instead of passing through
method dispatching for the outer __isset() method.
Daniele Alessandri hace 11 años
padre
commit
f36138c0b7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/Predis/Connection/ConnectionParameters.php

+ 1 - 1
lib/Predis/Connection/ConnectionParameters.php

@@ -153,7 +153,7 @@ class ConnectionParameters implements ConnectionParametersInterface
      */
     public function __get($parameter)
     {
-        if (isset($this->{$parameter})) {
+        if (isset($this->parameters[$parameter])) {
             return $this->parameters[$parameter];
         }
     }