From da1bf295adb6bc6f3145586c236be8e4aca79f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 25 Feb 2021 14:46:27 +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/Request.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/HttpServer/Http/Request.php b/HttpServer/Http/Request.php index c684fe44..e65d1bec 100644 --- a/HttpServer/Http/Request.php +++ b/HttpServer/Http/Request.php @@ -36,19 +36,14 @@ defined('REQUEST_FAIL') or define('REQUEST_FAIL', 500); class Request extends HttpService { - /** @var int $fd */ public int $fd = 0; - /** @var HttpParams */ - public HttpParams $params; + public ?HttpParams $params; - /** @var HttpHeaders */ - public HttpHeaders $headers; + public ?HttpHeaders $headers; - /** @var bool */ public bool $isCli = FALSE; - /** @var float */ public float $startTime; public string $uri = '';