This commit is contained in:
2021-03-04 00:13:06 +08:00
parent 0921ca12ae
commit 18accfd166
+1 -1
View File
@@ -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 ?? []);
}
/**