From fa277fc3c91942b26ce0969ea55732fc4bbe67e6 Mon Sep 17 00:00:00 2001 From: camer0n Date: Tue, 22 Apr 2025 11:49:46 -0700 Subject: [PATCH] Issue #5443 PHP 8.4 fix --- e107_handlers/session_handler.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/e107_handlers/session_handler.php b/e107_handlers/session_handler.php index e4b5ff7b9..3a34ac00e 100644 --- a/e107_handlers/session_handler.php +++ b/e107_handlers/session_handler.php @@ -1275,11 +1275,10 @@ class e_session_db implements SessionHandlerInterface * @param int $max_lifetime * @return bool */ - public function gc(int $max_lifetime): bool - { - $this->_db->delete($this->getTable(), '`session_expires`<'.time()); - return true; - } + public function gc(int $max_lifetime): int|false + { + return $this->_db->delete($this->getTable(), '`session_expires`<'.time()); + } /** * Allow only well formed session id string