From 1b339547f304430b40e3178d9e2a9379ac11cbd1 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 Apr 2019 05:17:02 +0000 Subject: [PATCH] Fix warning --- src/App.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index 1649a87454..2576cc5d8e 100644 --- a/src/App.php +++ b/src/App.php @@ -1270,7 +1270,8 @@ class App // First we try explicit routes defined in App\Router $this->router->collectRoutes(); - Hook::callAll('route_collection', $this->router->getRouteCollector()); + $data = $this->router->getRouteCollector(); + Hook::callAll('route_collection', $data); $this->module_class = $this->router->getModuleClass($this->cmd); -- 2.39.5