mirror of
https://github.com/predis/predis.git
synced 2026-08-22 14:31:12 +00:00
Overridden methods for UNWATCH and DISCARD in Predis\MultiExecBlock must return $this to not break method chaining.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user