From b91b2a82d080ba5e60d55895d0ba731d6b9f7a79 Mon Sep 17 00:00:00 2001 From: Mararok Date: Fri, 7 Feb 2020 11:40:30 +0100 Subject: [PATCH] remove callable hint ControllerActionRoute::addMiddleware (#43) --- src/SAREhub/Microt/App/Controller/ControllerActionRoute.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}