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

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];
         }
     }