OSDN Git Service

Fix wrong matches count #101
authorAntoine Pous <gecko@dvp.io>
Thu, 9 Mar 2017 21:19:24 +0000 (22:19 +0100)
committerAntoine Pous <gecko@dvp.io>
Thu, 9 Mar 2017 21:19:24 +0000 (22:19 +0100)
src/Router.php

index 15bb28c..0d08383 100755 (executable)
@@ -127,7 +127,7 @@ class Router
 
                 // check arguments number
 
-                if(count($argument_keys) !== count($matches)) {
+                if(count($argument_keys) !== (count($matches) -1)) {
                     continue;
                 }