Browse Source

Fix wrong class check (copy and paste is evil).

Daniele Alessandri 14 năm trước cách đây
mục cha
commit
6b2697a133
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -359,7 +359,7 @@ class ClientOptionsReader implements IClientOptionsHandler {
                 return new \Predis\FastResponseReader();
             }
             $valueReflection = new \ReflectionClass($value);
-            if ($valueReflection->isSubclassOf('\Predis\Distribution\IDistributionStrategy')) {
+            if ($valueReflection->isSubclassOf('\Predis\IResponseReader')) {
                 return new $value;
             }
         }