Explorar o código

Client::executeCommandInternal must accept IConnection types! Stupid bugs are indeed stupid.

Daniele Alessandri %!s(int64=15) %!d(string=hai) anos
pai
achega
3428529be6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -104,7 +104,7 @@ class Client {
         return $command;
         return $command;
     }
     }
 
 
-    private function executeCommandInternal(Connection $connection, Command $command) {
+    private function executeCommandInternal(IConnection $connection, Command $command) {
         $connection->writeCommand($command);
         $connection->writeCommand($command);
         if ($command->closesConnection()) {
         if ($command->closesConnection()) {
             return $connection->disconnect();
             return $connection->disconnect();