From 236bc535fcc323730636ade911ae36baf922906b Mon Sep 17 00:00:00 2001 From: Oskars Germovs <1909645+Faks@users.noreply.github.com> Date: Fri, 4 Oct 2024 23:16:00 +0300 Subject: [PATCH] Update RouteActionDetector.php 1.) added: bug fix to avoid crashing on null for the method getAction --- src/Detectors/RouteActionDetector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Detectors/RouteActionDetector.php b/src/Detectors/RouteActionDetector.php index 7a48fd7..22616d5 100644 --- a/src/Detectors/RouteActionDetector.php +++ b/src/Detectors/RouteActionDetector.php @@ -16,6 +16,6 @@ public function detect() { $action = Config::get('localizer.route_action'); - return Request::route()->getAction($action); + return Request::route()?->getAction($action); } }