From ee8ca0c38c5bbda071eaca164843b9a44456049d Mon Sep 17 00:00:00 2001 From: Marcus Olsson Date: Tue, 17 Sep 2024 13:49:03 +0200 Subject: [PATCH] Fix passing null as string --- src/Httpful/Handlers/FormHandler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Httpful/Handlers/FormHandler.php b/src/Httpful/Handlers/FormHandler.php index 0ff05a8..53a4bb7 100644 --- a/src/Httpful/Handlers/FormHandler.php +++ b/src/Httpful/Handlers/FormHandler.php @@ -6,7 +6,7 @@ namespace Httpful\Handlers; -class FormHandler extends MimeHandlerAdapter +class FormHandler extends MimeHandlerAdapter { /** * @param string $body @@ -18,13 +18,13 @@ public function parse($body) parse_str($body, $parsed); return $parsed; } - + /** * @param mixed $payload * @return string */ public function serialize($payload): string { - return http_build_query($payload, null, '&'); + return http_build_query($payload, "", '&'); } -} \ No newline at end of file +}