Overridden methods for UNWATCH and DISCARD in Predis\MultiExecBlock must return $this to not break method chaining.

This commit is contained in:
Daniele Alessandri
2010-11-28 19:10:43 +01:00
parent e146fa9e65
commit 1e4661cfc8
+2
View File
@@ -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() {