We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd5a1b4 commit e00b99dCopy full SHA for e00b99d
lib/Store/Redis.php
@@ -37,6 +37,10 @@ public function get($type, $key)
37
$redisKey = "{$this->prefix}.$type.$key";
38
$value = $this->redis->get($redisKey);
39
40
+ if (is_null($value)) {
41
+ return null;
42
+ }
43
+
44
return unserialize($value);
45
}
46
test/Store/RedisTest.php
@@ -126,7 +126,7 @@ public function testGetNonExistingKey()
126
$res = $store->get('test', 'nokey');
127
128
$this->assertEquals('simpleSAMLphp.test.nokey', Predis\Client::$getKey);
129
- $this->assertFalse($res);
+ $this->assertNull($res);
130
131
132
public function testDeleteKey()
0 commit comments