From 18accfd1668c0df9be4eb054c6cfd6f704baced5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 00:13:06 +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/HttpParams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Http/HttpParams.php b/HttpServer/Http/HttpParams.php index 924dff92..6bde9c16 100644 --- a/HttpServer/Http/HttpParams.php +++ b/HttpServer/Http/HttpParams.php @@ -161,7 +161,7 @@ class HttpParams */ #[Pure] public function load(): array { - return array_merge($this->files, $this->body, $this->gets); + return array_merge($this->files ?? [], $this->body ?? [], $this->gets ?? []); } /**