Преглед изворни кода

Minor internal change.

Check directly the private parameters array instead of passing through
method dispatching for the outer __isset() method.
Daniele Alessandri пре 11 година
родитељ
комит
f36138c0b7
1 измењених фајлова са 1 додато и 1 уклоњено
  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];
         }
     }