From 5c82d301a7cbfa1969adca52658e53f841d70b7a Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 13 Oct 2019 20:43:12 +0200 Subject: [PATCH] fix PHP 5.6 compatibility --- src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php b/src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php index fd038bc61270..ff4fc9a29cdd 100644 --- a/src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php @@ -157,7 +157,9 @@ public function hasItem($key) return false; } - if (!($itemTags = $this->pool->getItem(static::TAGS_PREFIX.$key))->isHit()) { + $itemTags = $this->pool->getItem(static::TAGS_PREFIX.$key); + + if (!$itemTags->isHit()) { return false; }