Skip to content

Commit 662167a

Browse files
committed
refactor(KeyValueCache): type class constants
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent ff15559 commit 662167a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Memcache/KeyValueCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class KeyValueCache extends Cache implements IMemcacheTTL {
2525
/** name => [script, sha1] */
26-
private const LUA_SCRIPTS = [
26+
private const array LUA_SCRIPTS = [
2727
'dec' => [
2828
'if redis.call("exists", KEYS[1]) == 1 then return redis.call("decrby", KEYS[1], ARGV[1]) else return "NEX" end',
2929
'720b40cb66cef1579f2ef16ec69b3da8c85510e9',
@@ -46,7 +46,7 @@ class KeyValueCache extends Cache implements IMemcacheTTL {
4646
],
4747
];
4848

49-
private const MAX_TTL = 30 * 24 * 60 * 60; // 1 month
49+
private const int MAX_TTL = 30 * 24 * 60 * 60; // 1 month
5050

5151
private ?Client $cache = null;
5252

0 commit comments

Comments
 (0)