fix PHP 5.6 compatibility

This commit is contained in:
Christian Flothmann 2019-10-13 20:43:12 +02:00
parent 0065f7579b
commit 5c82d301a7

View File

@ -157,7 +157,9 @@ class TagAwareAdapter implements TagAwareAdapterInterface, PruneableInterface, R
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;
}