Skip to content

Commit 57e1012

Browse files
committed
fix order of routes
1 parent bcc6bdb commit 57e1012

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Router.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ public function dispatch(): self
231231
$domain = substr($this->request->getUri()->getHost(), strlen($scheme . '://'));
232232
$uri = $this->request->getUri()->getPath();
233233

234+
sort($this->routes, SORT_DESC);
235+
234236
foreach ($this->routes as $route) {
235237
$parameters = [];
236238

0 commit comments

Comments
 (0)