From 8f50bfb06561d34378eeb5308ff1d29aee22fdc5 Mon Sep 17 00:00:00 2001 From: Julien Rosset Date: Tue, 10 Jan 2023 10:01:53 +0100 Subject: [PATCH] Fix url building: http_build_query not working as expected before PHP 8.0 --- src/UrlInfo/UrlInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UrlInfo/UrlInfo.php b/src/UrlInfo/UrlInfo.php index f036650..78fa83f 100644 --- a/src/UrlInfo/UrlInfo.php +++ b/src/UrlInfo/UrlInfo.php @@ -390,7 +390,7 @@ class UrlInfo { * @return string The URL arguments as a string */ public function getArgumentsAsString (int $encoding_type = PHP_QUERY_RFC1738): string { - return http_build_query($this->getArguments()->toArray(), '', null, $encoding_type); + return http_build_query($this->getArguments()->toArray(), '', '&', $encoding_type); } /** * Set the URL arguments