Skip to content

Commit

Permalink
fix PHP 5.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Oct 13, 2019
1 parent 0065f75 commit 5c82d30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5c82d30

Please sign in to comment.