Skip to content

Commit

Permalink
Fixed redis 'has' method returning an int instead of a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
PHLAK committed May 1, 2019
1 parent 4046b63 commit 504ca03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function get($key, $default = false)
*/
public function has($key)
{
return $this->redis->exists($key);
return (bool) $this->redis->exists($key);
}

/**
Expand Down

0 comments on commit 504ca03

Please sign in to comment.