8000 fix PHP 5.6 compatibility · symfony/symfony@5c82d30 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c82d30

Browse files
committed
fix PHP 5.6 compatibility
1 parent 0065f75 commit 5c82d30

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