From 25f4818d2efedbe74d62fe001ea74c923d0f36cb Mon Sep 17 00:00:00 2001 From: maxpozdeev Date: Thu, 29 May 2025 17:44:58 +0300 Subject: [PATCH] - fix: incompatibility with SessionUpdateTimestampHandlerInterface in PHP 7.x --- src/includes/class.sessionhandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/includes/class.sessionhandler.php b/src/includes/class.sessionhandler.php index 2a885cb..85c6c04 100644 --- a/src/includes/class.sessionhandler.php +++ b/src/includes/class.sessionhandler.php @@ -1,4 +1,4 @@ -db->sq("SELECT COUNT(*) FROM {$this->db->prefix}sessions WHERE id = ?", [$id]); if ($r) @@ -142,7 +142,7 @@ class MTTSessionHandler implements SessionHandlerInterface, SessionUpdateTimesta * @param string $data * @return bool */ - public function updateTimestamp(string $id, string $data): bool + public function updateTimestamp($id, $data): bool { // Warning if return false return true;