From 1e4661cfc8fea9f4ebd60dd342e4dc3867e002ff Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Sun, 28 Nov 2010 19:10:43 +0100 Subject: [PATCH] Overridden methods for UNWATCH and DISCARD in Predis\MultiExecBlock must return $this to not break method chaining. --- lib/Predis.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Predis.php b/lib/Predis.php index 43f7014c..b6c7e104 100644 --- a/lib/Predis.php +++ b/lib/Predis.php @@ -856,6 +856,7 @@ class MultiExecBlock { public function unwatch() { $this->isWatchSupported(); $this->_redisClient->unwatch(); + return $this; } public function discard() { @@ -863,6 +864,7 @@ class MultiExecBlock { $this->_commands = array(); $this->_initialized = false; $this->_discarded = true; + return $this; } public function exec() {