Parcourir la source

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

Daniele Alessandri il y a 13 ans
Parent
commit
9dcabc3264
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
 
         try {
-            $callable($this);
+            call_user_func($callable, $this);
         }
         catch (CommunicationException $exception) {
             $blockException = $exception;