Ver Fonte

Make it possible to use any type of callable to execute a transaction.

Daniele Alessandri há 13 anos atrás
pai
commit
9dcabc3264
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/Predis/Transaction/MultiExecContext.php

+ 1 - 1
lib/Predis/Transaction/MultiExecContext.php

@@ -390,7 +390,7 @@ class MultiExecContext
         $this->flagState(self::STATE_INSIDEBLOCK);
         $this->flagState(self::STATE_INSIDEBLOCK);
 
 
         try {
         try {
-            $callable($this);
+            call_user_func($callable, $this);
         }
         }
         catch (CommunicationException $exception) {
         catch (CommunicationException $exception) {
             $blockException = $exception;
             $blockException = $exception;