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 ?? []); } /**