Skip to content
Snippets Groups Projects
Unverified Commit 7c02b15e authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo Committed by GitHub
Browse files

Merge pull request #697 from matt-catalyst/redis-duplicate-assertion

Fix duplicate assertion error using Redis Store
parents a867f5c6 50728b04
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ class Redis extends Store
$result = $this->redis->get("{$type}.{$key}");
if ($result === false) {
if ($result === false || $result === null) {
return null;
}
......
......@@ -48,7 +48,7 @@ class RedisTest extends \PHPUnit_Framework_TestCase
public function getMocked($key)
{
return array_key_exists($key, $this->config) ? $this->config[$key] : false;
return array_key_exists($key, $this->config) ? $this->config[$key] : null;
}
public function setMocked($key, $value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment