Skip to content

Commit

Permalink
Fix implicit float to int conversion (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Dec 8, 2021
1 parent 0cc086c commit e49bed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Converter/SymfonyCacheItemConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e49bed4

Please sign in to comment.