Skip to content

Commit

Permalink
minor #33974 [Cache] fix PHP 5.6 compatibility (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.4 branch.

Discussion
----------

[Cache] fix PHP 5.6 compatibility

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Commits
-------

5c82d30 fix PHP 5.6 compatibility
  • Loading branch information
nicolas-grekas committed Oct 13, 2019
2 parents 0065f75 + 5c82d30 commit fb2a7a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php
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 fb2a7a3

Please sign in to comment.