From dc20c953cac17babf5f97a1b28a4c0274a1380c9 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 25 Jan 2023 17:37:20 +0900 Subject: [PATCH] refactor: remove unused variable --- system/Router/RouteCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Router/RouteCollection.php b/system/Router/RouteCollection.php index 62705e1219f5..f115a1251099 100644 --- a/system/Router/RouteCollection.php +++ b/system/Router/RouteCollection.php @@ -1641,7 +1641,7 @@ public function getRegisteredControllers(?string $verb = '*'): array if ($verb === '*') { foreach ($this->defaultHTTPMethods as $tmpVerb) { - foreach ($this->routes[$tmpVerb] as $routeKey => $route) { + foreach ($this->routes[$tmpVerb] as $route) { $controller = $this->getControllerName($route['handler']); if ($controller !== null) { $controllers[] = $controller;