Check for null on webhook url
Some checks are pending
Crowdin Action / upload-sources-to-crowdin (push) Waiting to run
Docker images (Alpine) / docker (push) Waiting to run
Docker images / docker (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.4) (push) Waiting to run
Tests in SQLite / PHP ${{ matrix.php-version }} (8.3) (push) Waiting to run

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.