Skip to content

Commit f39530a

Browse files
committed
fix: reset params for HTTP testing
A previous test result causes an params count error in HTTP testing.
1 parent 6a8c20e commit f39530a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/Router/AutoRouterImproved.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ public function getRoute(string $uri, string $httpVerb): array
106106
{
107107
$httpVerb = strtolower($httpVerb);
108108

109+
// Reset Controller method params.
110+
$this->params = [];
111+
109112
$defaultMethod = $httpVerb . ucfirst($this->defaultMethod);
110113
$this->method = $defaultMethod;
111114

0 commit comments

Comments
 (0)