Skip to content

Commit

Permalink
Separate chain calls (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
sankaest committed Jun 1, 2022
1 parent 481bdec commit 376ba3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SimpleCache/MemorySimpleCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ private function ttlToExpiration($ttl): int
private function normalizeTtl($ttl): ?int
{
if ($ttl instanceof DateInterval) {
return (new DateTime('@0'))->add($ttl)->getTimestamp();
return (new DateTime('@0'))
->add($ttl)
->getTimestamp();
}

if (is_string($ttl)) {
Expand Down

0 comments on commit 376ba3b

Please sign in to comment.