From e49bed429f45f50ab53296f4727ab1a0ce1bc24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Chr=C3=A1steck=C3=BD?= Date: Wed, 8 Dec 2021 09:41:33 +0100 Subject: [PATCH] Fix implicit float to int conversion (#17) --- src/Converter/SymfonyCacheItemConverter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Converter/SymfonyCacheItemConverter.php b/src/Converter/SymfonyCacheItemConverter.php index da79f55..f81df68 100644 --- a/src/Converter/SymfonyCacheItemConverter.php +++ b/src/Converter/SymfonyCacheItemConverter.php @@ -47,7 +47,7 @@ public function convert(CacheItemInterface $cacheItem): DynamoCacheItem $expiry = null; } else { $expiry = new DateTime(); - $expiry->setTimestamp($value); + $expiry->setTimestamp((int) $value); } // @codeCoverageIgnoreStart } catch (ReflectionException $e) {