Skip to content

Commit a4916b4

Browse files
committed
Disable forced type on onRequest
1 parent 6c8ffb0 commit a4916b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Adapter/Swoole/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function setConfig(array $configs)
3131
public function onRequest(callable $callback)
3232
{
3333
$this->server->handle('/', function (SwooleRequest $request, SwooleResponse $response) use ($callback) {
34-
call_user_func($callback, new Request($request), new Response($response), \strval(Coroutine::getCid()));
34+
call_user_func($callback, $request, $response, \strval(Coroutine::getCid()));
3535
});
3636
}
3737

0 commit comments

Comments
 (0)