X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3b31ac75ec41b3990cea770a9e48e2066bd8e9a3..refs/pull/4562/head:/app/Activity/Tools/WebhookFormatter.php diff --git a/app/Activity/Tools/WebhookFormatter.php b/app/Activity/Tools/WebhookFormatter.php index 423713978..6ccb084b8 100644 --- a/app/Activity/Tools/WebhookFormatter.php +++ b/app/Activity/Tools/WebhookFormatter.php @@ -17,18 +17,14 @@ class WebhookFormatter protected string $event; protected User $initiator; protected int $initiatedTime; - - /** - * @var string|Loggable - */ - protected $detail; + protected string|Loggable $detail; /** * @var array{condition: callable(string, Model):bool, format: callable(Model):void}[] */ protected $modelFormatters = []; - public function __construct(string $event, Webhook $webhook, $detail, User $initiator, int $initiatedTime) + public function __construct(string $event, Webhook $webhook, string|Loggable $detail, User $initiator, int $initiatedTime) { $this->webhook = $webhook; $this->event = $event;