From 333bab90a7d4d159d001e3f0579b10cced763249 Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 10 Dec 2024 19:25:26 +0000 Subject: Remove use of 'ReturnTypeWillChange'. 'ReturnTypeWillChange' was a workaround needed until we reached PHP 8.0, which introduced union types and allowed alignment with 'SessionHandlerInterface'. --- classes/Sessions.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'classes/Sessions.php') diff --git a/classes/Sessions.php b/classes/Sessions.php index c54815b0f..330790eeb 100644 --- a/classes/Sessions.php +++ b/classes/Sessions.php @@ -53,7 +53,6 @@ class Sessions implements \SessionHandlerInterface { return true; } - #[\ReturnTypeWillChange] public function read(string $id): false|string { $sth = Db::pdo()->prepare('SELECT data FROM ttrss_sessions WHERE id=?'); $sth->execute([$id]); @@ -93,7 +92,6 @@ class Sessions implements \SessionHandlerInterface { /** * @return int|false the number of deleted sessions on success, or false on failure */ - #[\ReturnTypeWillChange] public function gc(int $max_lifetime): false|int { $result = Db::pdo()->query('DELETE FROM ttrss_sessions WHERE expire < ' . time()); return $result === false ? false : $result->rowCount(); -- cgit v1.2.3-54-g00ecf