From fb9c056a4691a7c0faf8274da03f842eb2becde0 Mon Sep 17 00:00:00 2001 From: Gregor Eichelberger Date: Thu, 23 Jan 2025 17:33:14 +0100 Subject: [PATCH] Fix redis_store get function return type Return type declaration must be compatible with StoreInterface->get(type: string, key: string) : mixed --- classes/redis_store.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/redis_store.php b/classes/redis_store.php index baf82ef0d..b464430bc 100644 --- a/classes/redis_store.php +++ b/classes/redis_store.php @@ -81,7 +81,7 @@ public function set(string $type, string $key, $value, ?int $expire = null): voi * @param string $key * @return mixed|null */ - public function get($type, $key) { + public function get($type, $key): mixed { $value = $this->redis->get($this->make_key($type, $key)); if ($value === false) { $value = null;