Skip to content

Commit 91b29fe

Browse files
committed
Return event name
1 parent 848f022 commit 91b29fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Models/ArticleWithLogDescriptionClosure.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class ArticleWithLogDescriptionClosure extends Article
1212
public function getActivitylogOptions(): LogOptions
1313
{
1414
return LogOptions::defaults()
15-
->setDescriptionForEvent(function () {});
15+
->setDescriptionForEvent(function ($eventName) {
16+
return $eventName;
17+
});
1618
}
1719
}

0 commit comments

Comments
 (0)