Check for null on webhook url

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-03-05 11:59:35 +00:00
parent e1156be919
commit 7a312d075c

View file

@ -247,7 +247,7 @@ class Setting extends Model
* *
* @return string * @return string
*/ */
public function routeNotificationForSlack(): string public function routeNotificationForSlack(): ?string
{ {
// At this point the endpoint is the same for everything. // At this point the endpoint is the same for everything.
// In the future this may want to be adapted for individual notifications. // In the future this may want to be adapted for individual notifications.
@ -259,7 +259,7 @@ class Setting extends Model
* *
* @return string * @return string
*/ */
public function routeNotificationForMail(): string public function routeNotificationForMail(): ?string
{ {
// At this point the endpoint is the same for everything. // At this point the endpoint is the same for everything.
// In the future this may want to be adapted for individual notifications. // In the future this may want to be adapted for individual notifications.