From 31f6b4acef53686dc9a928144106325a6fa4ffc1 Mon Sep 17 00:00:00 2001 From: Oskars Germovs <1909645+Faks@users.noreply.github.com> Date: Fri, 4 Oct 2024 23:30:52 +0300 Subject: [PATCH] Update RouteActionDetector.php 1.) added: bug fix to avoid crashing on null, for the method getAction() --- src/Middleware/Detectors/RouteActionDetector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Middleware/Detectors/RouteActionDetector.php b/src/Middleware/Detectors/RouteActionDetector.php index c319041..67514e5 100644 --- a/src/Middleware/Detectors/RouteActionDetector.php +++ b/src/Middleware/Detectors/RouteActionDetector.php @@ -33,6 +33,6 @@ public function detect() { $action = Config::get('localized-routes.route_action'); - return $this->route->getAction($action); + return $this->route?->getAction($action); } }