Эх сурвалжийг харах

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

Daniele Alessandri 13 жил өмнө
parent
commit
9dcabc3264

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

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