Skip to content

Commit e319df8

Browse files
committed
locked exception constructor fix
1 parent 80fa266 commit e319df8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TarantoolStore.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function delete(Key $key, ?string $token = null)
7373
/**
7474
* {@inheritdoc}
7575
*/
76-
public function exists(Key $key)
76+
public function exists(Key $key): bool
7777
{
7878
try {
7979
$data = $this->client
@@ -141,7 +141,7 @@ public function save(Key $key)
141141
}
142142
}
143143

144-
throw new LockConflictedException(null, null, $e);
144+
throw new LockConflictedException($e->getMessage(), $e->getCode(), $e);
145145
}
146146
}
147147

0 commit comments

Comments
 (0)