diff --git a/src/Converter/SymfonyCacheItemConverter.php b/src/Converter/SymfonyCacheItemConverter.php index bb9cc24..7747f60 100644 --- a/src/Converter/SymfonyCacheItemConverter.php +++ b/src/Converter/SymfonyCacheItemConverter.php @@ -28,6 +28,7 @@ public function supports(CacheItemInterface $cacheItem): bool public function convert(CacheItemInterface $cacheItem): DynamoCacheItem { assert($cacheItem instanceof CacheItem); + // in a try-catch block in case the internal workings of CacheItem change try { $reflectionExpiry = new ReflectionProperty(CacheItem::class, 'expiry');