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; }