From 5c6d3753efc5b2534dbfd69a43c30d05bfc9096b Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Fri, 9 Dec 2022 15:53:01 +0000 Subject: Fix Redis session PHP warnings --- Zotlabs/Web/SessionRedis.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Zotlabs/Web/SessionRedis.php') diff --git a/Zotlabs/Web/SessionRedis.php b/Zotlabs/Web/SessionRedis.php index 66eb7a02d..f32e6a4f4 100644 --- a/Zotlabs/Web/SessionRedis.php +++ b/Zotlabs/Web/SessionRedis.php @@ -42,7 +42,7 @@ class SessionRedis implements \SessionHandlerInterface { } } - + #[\ReturnTypeWillChange] function open($s, $n) { return true; @@ -53,6 +53,7 @@ class SessionRedis implements \SessionHandlerInterface { // some which call read explicitly and some that do not. So we call it explicitly // just after sid regeneration to force a record to exist. + #[\ReturnTypeWillChange] function read($id) { if ($id) { @@ -67,7 +68,7 @@ class SessionRedis implements \SessionHandlerInterface { return ''; } - + #[\ReturnTypeWillChange] function write($id, $data) { // Pretend everything is hunky-dory, even though it isn't. @@ -100,13 +101,13 @@ class SessionRedis implements \SessionHandlerInterface { return true; } - + #[\ReturnTypeWillChange] function close() { return true; } - + #[\ReturnTypeWillChange] function destroy ($id) { $this->redis->del($id); @@ -114,7 +115,7 @@ class SessionRedis implements \SessionHandlerInterface { return true; } - + #[\ReturnTypeWillChange] function gc($expire) { return true; -- cgit v1.2.3