From 85da081614a984f646f939e4510beed32891b5fa Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 13 Jul 2020 11:17:19 +0200 Subject: [PATCH] [Cache] fix merge --- src/Symfony/Component/Cache/Adapter/ArrayAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php b/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php index 701f9190e5..83ea1018b6 100644 --- a/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php @@ -205,7 +205,7 @@ class ArrayAdapter implements AdapterInterface, CacheInterface, LoggerAwareInter return false; } if (null === $expiry && 0 < $this->defaultLifetime) { - $expiry = microtime(true) + $this->defaultLifetime; + $expiry = $this->defaultLifetime; $expiry = $now + ($expiry > ($this->maxLifetime ?: $expiry) ? $this->maxLifetime : $expiry); } elseif ($this->maxLifetime && (null === $expiry || $expiry > $now + $this->maxLifetime)) { $expiry = $now + $this->maxLifetime;