diff --git a/src/SAREhub/Microt/App/Controller/ControllerActionRoute.php b/src/SAREhub/Microt/App/Controller/ControllerActionRoute.php index b296f9b..4d4bebb 100644 --- a/src/SAREhub/Microt/App/Controller/ControllerActionRoute.php +++ b/src/SAREhub/Microt/App/Controller/ControllerActionRoute.php @@ -96,7 +96,7 @@ public function pattern(string $pattern): ControllerActionRoute return $this; } - public function addMiddleware(callable $middleware): ControllerActionRoute + public function addMiddleware($middleware): ControllerActionRoute { $this->middlewares[] = $middleware; return $this; @@ -164,4 +164,4 @@ private function jsonSerializeMiddlewares(): array } return $json; } -} \ No newline at end of file +}