Skip to content

Commit 8134b2c

Browse files
fix(KeyValueCache): drop class constant types
...Typed class constants are not supported on stable34 Signed-off-by: Andy Scherzinger <andy.scherzinger@nextcloud.com>
1 parent 03c5c0d commit 8134b2c

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 array LUA_SCRIPTS = [
26+
private const 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 int MAX_TTL = 30 * 24 * 60 * 60; // 1 month
49+
private const MAX_TTL = 30 * 24 * 60 * 60; // 1 month
5050

5151
private ?Client $cache = null;
5252

0 commit comments

Comments
 (0)