]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Tools/WebhookFormatter.php
respective book and chapter structure added.
[bookstack] / app / Activity / Tools / WebhookFormatter.php
index 4237139780a03f0912b9bb5aae3db56950134bc4..6ccb084b8de769b2856020b101beffb527199ef1 100644 (file)
@@ -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;