Skip to content

Commit a37b1d7

Browse files
vpassaperaNyholm
authored andcommitted
Fixes #100. Incorrect instance of item passed to addTags method. (#66)
1 parent c711fe1 commit a37b1d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/Cache/FixedTaggingCachePool.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ public function deleteItems(array $keys)
9797
*/
9898
public function save(CacheItemInterface $item)
9999
{
100-
$this->addTags($item);
100+
if ($item instanceof TaggableItemInterface) {
101+
$this->addTags($item);
102+
}
101103

102104
return $this->cache->save($item);
103105
}

0 commit comments

Comments
 (0)