aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-09 12:01:16 +0000
committerMario <mario@mariovavti.com>2022-02-09 12:01:16 +0000
commitb6b2299b4e93a9c688c6ec1587808205bf4b4d2f (patch)
treecb45a826865c5355635a04d8ec957adb45235e3e /Zotlabs
parent4a8c3cdc6109c5515824082f57bdb801b13ef9e0 (diff)
downloadvolse-hubzilla-b6b2299b4e93a9c688c6ec1587808205bf4b4d2f.tar.gz
volse-hubzilla-b6b2299b4e93a9c688c6ec1587808205bf4b4d2f.tar.bz2
volse-hubzilla-b6b2299b4e93a9c688c6ec1587808205bf4b4d2f.zip
revert: union types are only possible from php version 8 and higher
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Web/SessionHandler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Web/SessionHandler.php b/Zotlabs/Web/SessionHandler.php
index 392cab1ae..6beb36795 100644
--- a/Zotlabs/Web/SessionHandler.php
+++ b/Zotlabs/Web/SessionHandler.php
@@ -15,7 +15,7 @@ class SessionHandler 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.
- function read ($id) : string|false {
+ function read ($id) : string {
if($id) {
$r = q("SELECT sess_data FROM session WHERE sid= '%s'", dbesc($id));
@@ -86,7 +86,7 @@ class SessionHandler implements \SessionHandlerInterface {
}
- function gc($expire) : int|false {
+ function gc($expire) : int {
q("DELETE FROM session WHERE expire < %d", dbesc(time()));
return true;
}