diff --git a/http-helper/Route/Router.php b/http-helper/Route/Router.php index 85c67e9f..e3d38ab4 100644 --- a/http-helper/Route/Router.php +++ b/http-helper/Route/Router.php @@ -587,7 +587,7 @@ class Router extends HttpService implements RouterInterface continue; } foreach ($attribute as $item) { - $item['class']::execute((object)$item['params'], $class, $method); + $item->execute($class, $method); } } }