summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-12-10 19:25:26 +0000
committerwn_ <invalid@email.com>2024-12-14 12:26:59 +0000
commit333bab90a7d4d159d001e3f0579b10cced763249 (patch)
treefecadffd33e83297627569a99fe62adadbcc0d5d
parent1742fb65c53a2a6cd6a310d225add25ee20c14b6 (diff)
Remove use of 'ReturnTypeWillChange'.
'ReturnTypeWillChange' was a workaround needed until we reached PHP 8.0, which introduced union types and allowed alignment with 'SessionHandlerInterface'.
-rw-r--r--classes/Sessions.php2
1 files changed, 0 insertions, 2 deletions
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();