Skip to content

Commit 8f1e420

Browse files
authored
Merge pull request #20 from hyperf/fixroute
fix: fix overwritten route option
2 parents f783979 + 3dd96a8 commit 8f1e420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function addRoute($httpMethod, string $route, $handler, array $options =
271271
if ($handler instanceof \Closure) {
272272
$handler = $handler->bindTo($this->bound, $this->bound);
273273
}
274-
return $router->addRoute($httpMethod, $route, $handler, $options = []);
274+
return $router->addRoute($httpMethod, $route, $handler, $options);
275275
}
276276

277277
/**

0 commit comments

Comments
 (0)