8000 minor #33974 [Cache] fix PHP 5.6 compatibility (xabbuh) · symfony/symfony@fb2a7a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb2a7a3

Browse files
minor #33974 [Cache] fix PHP 5.6 compatibility (xabbuh)
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
2 parents 0065f75 + 5c82d30 commit fb2a7a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ public function hasItem($key)
157157
return false;
158158
}
159159

160-
if (!($itemTags = $this->pool->getItem(static::TAGS_PREFIX.$key))->isHit()) {
160+
$itemTags = $this->pool->getItem(static::TAGS_PREFIX.$key);
161+
162+
if (!$itemTags->isHit()) {
161163
return false;
162164
}
163165

0 commit comments

Comments
 (0)
0