Skip to content

Commit

Permalink
locked exception constructor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 8, 2021
1 parent 80fa266 commit e319df8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TarantoolStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -141,7 +141,7 @@ public function save(Key $key)
}
}

throw new LockConflictedException(null, null, $e);
throw new LockConflictedException($e->getMessage(), $e->getCode(), $e);
}
}

Expand Down

0 comments on commit e319df8

Please sign in to comment.