Skip to content

Commit

Permalink
PredisCache#doContains() should return a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefersson Nathan authored and Ocramius committed Oct 29, 2016
1 parent efe115f commit e01450b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/Cache/PredisCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function doSaveMultiple(array $keysAndValues, $lifetime = 0)
*/
protected function doContains($id)
{
return $this->client->exists($id) !== 0;
return (bool) $this->client->exists($id);
}

/**
Expand Down

0 comments on commit e01450b

Please sign in to comment.