Fix url building: http_build_query not working as expected before PHP 8.0

master 1.3.2
Julien Rosset 3 years ago
parent 7f20e29072
commit 8f50bfb065

@ -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

Loading…
Cancel
Save