8000 [Cache] Fix TagAwareAdapter::hasItem() · symfony/symfony@02f59fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 02f59fe

Browse files
[Cache] Fix TagAwareAdapter::hasItem()
1 parent 66b84b2 commit 02f59fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ public function hasItem($key)
101101
return true;
102102
}
103103

104-
foreach ($this->tagsAdapter->getItems(array_keys($itemTags)) as $tag => $version) {
105-
if ($itemTags[$tag] !== ($version->get() ?: 0)) {
104+
foreach ($this->getTagVersions(array($itemTags)) as $tag => $version) {
105+
if ($itemTags[$tag] !== $version) {
106106
return false;
107107
}
108108
}

0 commit comments

Comments
 (0)
0