From 3af76e4e7370581b0eff957d8d6d64049e0be3fc Mon Sep 17 00:00:00 2001 From: Marcin Morawski Date: Sun, 3 Apr 2022 11:28:56 +0200 Subject: [PATCH] Fixes issue with http_build_query() on PHP 8.1 http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated --- src/Network/PrepareUrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/PrepareUrl.php b/src/Network/PrepareUrl.php index b347a9c..6c1b841 100644 --- a/src/Network/PrepareUrl.php +++ b/src/Network/PrepareUrl.php @@ -45,7 +45,7 @@ public function build($url, array $singleParameters, array $compoundParameters, if (!empty($this->cacheBuster)) { $this->payloadParameters['z'] = $this->cacheBuster; } - $query = http_build_query($this->payloadParameters, null, ini_get('arg_separator.output'), PHP_QUERY_RFC3986); + $query = http_build_query($this->payloadParameters, "", ini_get('arg_separator.output'), PHP_QUERY_RFC3986); return $onlyQuery ? $query : ($url . '?' . $query); }