We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc8ffd7 commit b3e57c8Copy full SHA for b3e57c8
tests/Benchmark/Http/Routing/Matching/GenericRouteMatcherBench.php
@@ -9,6 +9,8 @@
9
use PhpBench\Attributes\ParamProviders;
10
use PhpBench\Attributes\Revs;
11
use PhpBench\Attributes\Warmup;
12
+use Tempest\Http\GenericRequest;
13
+use Tempest\Http\Method;
14
use Tempest\Router\RouteConfig;
15
use Tempest\Router\Routing\Construction\RouteConfigurator;
16
use Tempest\Router\Routing\Matching\GenericRouteMatcher;
@@ -31,7 +33,7 @@ public function __construct()
31
33
public function benchMatch(array $params): void
32
34
{
35
$this->matcher->match(
- new ServerRequest(uri: $params['uri'], method: 'GET'),
36
+ new GenericRequest(Method::GET, $params['uri']),
37
);
38
}
39
0 commit comments