Skip to content

Commit

Permalink
Merge pull request #20 from hyperf/fixroute
Browse files Browse the repository at this point in the history
fix: fix overwritten route option
  • Loading branch information
Reasno authored Dec 17, 2020
2 parents f783979 + 3dd96a8 commit 8f1e420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function addRoute($httpMethod, string $route, $handler, array $options =
if ($handler instanceof \Closure) {
$handler = $handler->bindTo($this->bound, $this->bound);
}
return $router->addRoute($httpMethod, $route, $handler, $options = []);
return $router->addRoute($httpMethod, $route, $handler, $options);
}

/**
Expand Down

0 comments on commit 8f1e420

Please sign in to comment.