Skip to content

Commit

Permalink
remove callable hint ControllerActionRoute::addMiddleware (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mararok authored Feb 7, 2020
1 parent b07b2b4 commit b91b2a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SAREhub/Microt/App/Controller/ControllerActionRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -164,4 +164,4 @@ private function jsonSerializeMiddlewares(): array
}
return $json;
}
}
}

0 comments on commit b91b2a8

Please sign in to comment.