diff options
author | Max Kostikov <max@kostikov.co> | 2022-12-09 15:53:01 +0000 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2022-12-09 15:53:01 +0000 |
commit | 5c6d3753efc5b2534dbfd69a43c30d05bfc9096b (patch) | |
tree | b0cf336ab5cf0248ae4f8a44cbafce136d301b53 /Zotlabs/Web/SessionRedis.php | |
parent | 4f9a933108eb0a41671ec9464f1d7fb90c2d2233 (diff) | |
download | volse-hubzilla-5c6d3753efc5b2534dbfd69a43c30d05bfc9096b.tar.gz volse-hubzilla-5c6d3753efc5b2534dbfd69a43c30d05bfc9096b.tar.bz2 volse-hubzilla-5c6d3753efc5b2534dbfd69a43c30d05bfc9096b.zip |
Fix Redis session PHP warnings
Diffstat (limited to 'Zotlabs/Web/SessionRedis.php')
-rw-r--r-- | Zotlabs/Web/SessionRedis.php | 11 |
1 files changed, 6 insertions, 5 deletions
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;
|