From 3ecc305238d86fe6eaf725bb0a8c6944e22f90fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 1 Aug 2021 15:27:47 +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 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/HttpServer/Http/HttpParams.php b/HttpServer/Http/HttpParams.php index 529cccf1..48cc4c8a 100644 --- a/HttpServer/Http/HttpParams.php +++ b/HttpServer/Http/HttpParams.php @@ -29,8 +29,8 @@ class HttpParams private ?array $_gets = []; - /** @var array|null */ - private ?array $_posts = []; + /** @var mixed */ + private mixed $_posts = []; /** @var array|null */ @@ -63,9 +63,6 @@ class HttpParams */ public function setPosts(mixed $data): void { - if (is_object($data)) { - $data = get_object_vars($data); - } $this->_posts = $data; }