aboutsummaryrefslogtreecommitdiff
path: root/caches/SQLiteCache.php
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2023-07-05 17:37:21 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-05 17:37:21 +0200
commita9fd3b9e61a7934c6b94fb5584c6668966a98cb9 (patch)
tree54f74721925f4ae99ca015c90dec4360368c3537 /caches/SQLiteCache.php
parent18e15973610dc1ac1f04d35a74004011e9c1bdc0 (diff)
downloadrss-bridge-a9fd3b9e61a7934c6b94fb5584c6668966a98cb9.tar.gz
rss-bridge-a9fd3b9e61a7934c6b94fb5584c6668966a98cb9.tar.zst
rss-bridge-a9fd3b9e61a7934c6b94fb5584c6668966a98cb9.zip
fix(CacheInterface): logic bug in getTime (#3491)
* fix(CacheInterface): logic bug in getTime * test
Diffstat (limited to 'caches/SQLiteCache.php')
-rw-r--r--caches/SQLiteCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/caches/SQLiteCache.php b/caches/SQLiteCache.php
index 1e44519b..ae531cb6 100644
--- a/caches/SQLiteCache.php
+++ b/caches/SQLiteCache.php
@@ -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());