Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit 039d838

Browse files
author
Antoine Pous
committed
Fix wrong matches count #101
1 parent 2e37963 commit 039d838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Router.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function match($requestUrl, $requestMethod = RequestMethodInterface::METH
127127

128128
// check arguments number
129129

130-
if(count($argument_keys) !== count($matches)) {
130+
if(count($argument_keys) !== (count($matches) -1)) {
131131
continue;
132132
}
133133

0 commit comments

Comments
 (0)