From 51a2f448fd96a1a5376276bfe84f1509b8c48bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 6 Jul 2021 18:07:41 +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/Http/Response.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index f3341b8a..c4a28f25 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -149,13 +149,13 @@ class Response extends HttpService return !($this->response instanceof SResponse) && !($this->response instanceof S2Response); } - /** - * @param string $context - * @param int $statusCode - * @return bool - * @throws Exception - */ - public function send(string $context = '', int $statusCode = 200): mixed + /** + * @param string|null $context + * @param int $statusCode + * @return bool + * @throws Exception + */ + public function send(?string $context = '', int $statusCode = 200): mixed { $sendData = $this->parseData($context);