aboutsummaryrefslogtreecommitdiff
path: root/classes/Sessions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-12-16 06:29:28 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-12-16 06:29:28 +0000
commite990a3c00fb630465996a29d60d9acc7687c8979 (patch)
tree6a1071eeb3e1a618ac3fe94bcf8363c6fbbc0bb5 /classes/Sessions.php
parentd1c0ba5944e225165a5761e3d9a6620d27aca263 (diff)
parent6f8f1b30d508dc3d2c3a067ca7fe2d161963ef5f (diff)
Merge branch 'feature/php-misc' into 'master'
More native typing, use some new PHP stuff See merge request tt-rss/tt-rss!88
Diffstat (limited to 'classes/Sessions.php')
-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();