Skip to content

Commit

Permalink
Fix boolval() not exists in PHP 5.3 & 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ComMouse committed Aug 31, 2016
1 parent d6efe19 commit 35bc134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dy/Redis/PredisClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function quit()
*/
public function exists($key)
{
return boolval($this->redis->exists($key));
return (bool) $this->redis->exists($key);
}

/**
Expand Down Expand Up @@ -201,7 +201,7 @@ public function scard($key)
*/
public function sismember($key, $member)
{
return boolval($this->redis->sismember($key, $member));
return (bool) $this->redis->sismember($key, $member);
}

/**
Expand Down

0 comments on commit 35bc134

Please sign in to comment.