From e319df8c42e1a78324ea648ace9a7f5909808783 Mon Sep 17 00:00:00 2001 From: dmitry krokhin Date: Wed, 8 Dec 2021 16:24:28 +0300 Subject: [PATCH] locked exception constructor fix --- src/TarantoolStore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TarantoolStore.php b/src/TarantoolStore.php index 4786e2d..4b5ff49 100644 --- a/src/TarantoolStore.php +++ b/src/TarantoolStore.php @@ -73,7 +73,7 @@ public function delete(Key $key, ?string $token = null) /** * {@inheritdoc} */ - public function exists(Key $key) + public function exists(Key $key): bool { try { $data = $this->client @@ -141,7 +141,7 @@ public function save(Key $key) } } - throw new LockConflictedException(null, null, $e); + throw new LockConflictedException($e->getMessage(), $e->getCode(), $e); } }