Check for null on webhook url
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e1156be919
commit
7a312d075c
1 changed files with 2 additions and 2 deletions
|
@ -247,7 +247,7 @@ class Setting extends Model
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public function routeNotificationForSlack(): string
|
||||
public function routeNotificationForSlack(): ?string
|
||||
{
|
||||
// At this point the endpoint is the same for everything.
|
||||
// In the future this may want to be adapted for individual notifications.
|
||||
|
@ -259,7 +259,7 @@ class Setting extends Model
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public function routeNotificationForMail(): string
|
||||
public function routeNotificationForMail(): ?string
|
||||
{
|
||||
// At this point the endpoint is the same for everything.
|
||||
// In the future this may want to be adapted for individual notifications.
|
||||
|
|
Loading…
Add table
Reference in a new issue