1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-05 16:17:28 +02:00

fix(CacheInterface): logic bug in getTime (#3491)

* fix(CacheInterface): logic bug in getTime

* test
This commit is contained in:
Dag
2023-07-05 17:37:21 +02:00
committed by GitHub
parent 18e1597361
commit a9fd3b9e61
11 changed files with 24 additions and 22 deletions

View File

@@ -70,7 +70,7 @@ class SQLiteCache implements CacheInterface
return $this;
}
public function getTime()
public function getTime(): ?int
{
$Qselect = $this->db->prepare('SELECT updated FROM storage WHERE key = :key');
$Qselect->bindValue(':key', $this->getCacheKey());