Make webhook nullable to prevent fatal error

This commit is contained in:
dinamiko 2021-09-24 12:20:43 +02:00
parent a5f308cb9d
commit 1d17a4d3ab

View file

@ -55,7 +55,7 @@ class WebhookSimulation {
*/
public function __construct(
WebhookEndpoint $webhook_endpoint,
Webhook $webhook,
?Webhook $webhook,
string $event_type
) {
$this->webhook_endpoint = $webhook_endpoint;