null-safe
This commit is contained in:
@ -24,6 +24,6 @@ class Bugsnag
|
||||
|
||||
public static function getRouteName(): ?string
|
||||
{
|
||||
return request()->route()->getName();
|
||||
return request()->route()?->getName();
|
||||
}
|
||||
}
|
||||
|
@ -71,6 +71,6 @@ class Sentry
|
||||
|
||||
public static function getRouteName(): ?string
|
||||
{
|
||||
return request()->route()->getName();
|
||||
return request()->route()?->getName();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user