diff --git a/src/SaveHandlers/RedisHandler.php b/src/SaveHandlers/RedisHandler.php index d76a9ac..5be0802 100644 --- a/src/SaveHandlers/RedisHandler.php +++ b/src/SaveHandlers/RedisHandler.php @@ -239,7 +239,7 @@ protected function lock(string $id) : bool while ($attempt < $this->config['lock_attempts']) { $attempt++; $oldTtl = $this->redis->ttl($lockId); - if ($oldTtl > 0) { + if (\is_int($oldTtl) && $oldTtl > 0) { \usleep($this->config['lock_sleep']); continue; }