1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-04 15:47:32 +02:00

refacor: improve cache interface (#3492)

* fix: proper typehint on setScope

* refactor: type hint setKey()

* typehint
This commit is contained in:
Dag
2023-07-06 15:10:30 +02:00
committed by GitHub
parent f8801d8cb3
commit caac7f572c
13 changed files with 56 additions and 220 deletions

View File

@@ -4,11 +4,11 @@ declare(strict_types=1);
class NullCache implements CacheInterface
{
public function setScope($scope)
public function setScope(string $scope): void
{
}
public function setKey($key)
public function setKey(array $key): void
{
}
@@ -16,7 +16,7 @@ class NullCache implements CacheInterface
{
}
public function saveData($data)
public function saveData($data): void
{
}
@@ -25,7 +25,7 @@ class NullCache implements CacheInterface
return null;
}
public function purgeCache($seconds)
public function purgeCache(int $seconds): void
{
}
}