From c91416f74b7c5f8ca4f816637d3e987d074c5297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 10 Sep 2020 11:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Events/OnRequest.php b/HttpServer/Events/OnRequest.php index 13a99003..107554dc 100644 --- a/HttpServer/Events/OnRequest.php +++ b/HttpServer/Events/OnRequest.php @@ -36,7 +36,7 @@ class OnRequest extends Callback public function onHandler(Request $request, Response $response) { try { - register_shutdown_function([static::class, 'shutdown'], $response); + register_shutdown_function(OnRequest::class . '::shutdown', $response); /** @var HRequest $sRequest */ [$sRequest, $sResponse] = static::setContext($request, $response);