From b4fe4ea6f9c445c64601e164e35af2086b30acfa Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 19 Sep 2026 18:27:50 +0200 Subject: [PATCH] fix: correct cast ttl to int in KeyValueCache Signed-off-by: Robin Appelman --- lib/private/Memcache/KeyValueCache.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Memcache/KeyValueCache.php b/lib/private/Memcache/KeyValueCache.php index fd47bbc95c5e4..3a06c55deb72b 100644 --- a/lib/private/Memcache/KeyValueCache.php +++ b/lib/private/Memcache/KeyValueCache.php @@ -66,6 +66,7 @@ public function get($key) { #[\Override] public function set($key, $value, $ttl = 0) { + $ttl = (int)$ttl; $value = self::encodeValue($value); $ttl = $this->normalizeTtl($ttl); return (bool)$this->getCache()->setex($this->getPrefix() . $key, $ttl, $value);