From a1e43ac14e78f4c9e3e2761b289ff9e29448e86f Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sat, 8 Jan 2022 21:49:56 +0100 Subject: [PATCH] Annotate type as specified by Predis client-interface --- lib/SimpleSAML/Store/RedisStore.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Store/RedisStore.php b/lib/SimpleSAML/Store/RedisStore.php index 20dfd28bd..d78871fb6 100644 --- a/lib/SimpleSAML/Store/RedisStore.php +++ b/lib/SimpleSAML/Store/RedisStore.php @@ -77,9 +77,10 @@ class RedisStore implements StoreInterface */ public function get(string $type, string $key) { + /** @var string|null $result */ $result = $this->redis->get("{$type}.{$key}"); - if ($result === false || $result === null) { + if ($result === null) { return null; } -- GitLab