Skip to content
Snippets Groups Projects
Commit a1e43ac1 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Annotate type as specified by Predis client-interface

parent 151223d3
No related branches found
No related tags found
No related merge requests found
...@@ -77,9 +77,10 @@ class RedisStore implements StoreInterface ...@@ -77,9 +77,10 @@ class RedisStore implements StoreInterface
*/ */
public function get(string $type, string $key) public function get(string $type, string $key)
{ {
/** @var string|null $result */
$result = $this->redis->get("{$type}.{$key}"); $result = $this->redis->get("{$type}.{$key}");
if ($result === false || $result === null) { if ($result === null) {
return null; return null;
} }
......
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