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