Skip to content

Commit 5291e19

Browse files
committed
check for method existence
1 parent 2b3d9e8 commit 5291e19

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Illuminate/Cache/TaggedCache.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ public function taggedItemKey($key)
109109
*/
110110
protected function event($event)
111111
{
112-
parent::event($event->setTags($this->tags->getNames()));
112+
if (method_exists($event, 'setTags')) {
113+
$event->setTags($this->tags->getNames());
114+
}
115+
116+
parent::event($event);
113117
}
114118

115119
/**

0 commit comments

Comments
 (0)