From 2226b88a88028e6153084f6ebbab3e1899febfee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 27 Sep 2023 21:46:32 +0200 Subject: [PATCH] adapt signature of DatabaseSessionHandler::gc to the parent class --- src/Session/DatabaseSessionHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Session/DatabaseSessionHandler.php b/src/Session/DatabaseSessionHandler.php index 8dac352..5f21ce3 100644 --- a/src/Session/DatabaseSessionHandler.php +++ b/src/Session/DatabaseSessionHandler.php @@ -86,12 +86,12 @@ class DatabaseSessionHandler implements ISessionHandler return true; } - public function gc($maxlifetime): bool + public function gc($maxlifetime): int|false { // empty on purpose // old sessions are deleted by MaintainDatabaseCommand - return true; + return 1; } public function create_sid(): string