mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-01 08:16:03 +00:00
Predis to v2.2.2
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
/*
|
||||
* This file is part of the Predis package.
|
||||
*
|
||||
* (c) Daniele Alessandri <suppakilla@gmail.com>
|
||||
* (c) 2009-2020 Daniele Alessandri
|
||||
* (c) 2021-2023 Till Krüss
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
@@ -15,8 +16,6 @@ use Predis\PredisException;
|
||||
|
||||
/**
|
||||
* Exception class that identifies a MULTI / EXEC transaction aborted by Redis.
|
||||
*
|
||||
* @author Daniele Alessandri <suppakilla@gmail.com>
|
||||
*/
|
||||
class AbortedMultiExecException extends PredisException
|
||||
{
|
||||
@@ -27,9 +26,10 @@ class AbortedMultiExecException extends PredisException
|
||||
* @param string $message Error message.
|
||||
* @param int $code Error code.
|
||||
*/
|
||||
public function __construct(MultiExec $transaction, $message, $code = null)
|
||||
public function __construct(MultiExec $transaction, $message, $code = 0)
|
||||
{
|
||||
parent::__construct($message, $code);
|
||||
parent::__construct($message, is_null($code) ? 0 : $code);
|
||||
|
||||
$this->transaction = $transaction;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user