Dont break BC

This commit is contained in:
Nyholm 2021-03-04 20:41:48 +01:00 committed by David Garcia
parent 1eab2cf3be
commit 9aed5e1234

View File

@ -33,8 +33,17 @@ final class ShowResponse implements ApiResponse
return $model;
}
public function getWebhookUrls(): ?array
public function getWebhookUrl(): ?string
{
return $this->webhook['urls'] ?? null;
foreach ($this->getWebhookUrls() as $url) {
return $url;
}
return null;
}
public function getWebhookUrls(): array
{
return $this->webhook['urls'] ?? [];
}
}