From b1bf3a9e6f1c09bdb33a6c38cbfb70ec294a8879 Mon Sep 17 00:00:00 2001 From: Aleksei Lebedev <1329824+LastDragon-ru@users.noreply.github.com> Date: Fri, 20 Oct 2023 09:00:10 +0400 Subject: [PATCH] "TypeError: http_build_query(): Argument #3 ($arg_separator) must be of type string, null given" fix. --- packages/testing/src/Constraints/Json/Protocol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/testing/src/Constraints/Json/Protocol.php b/packages/testing/src/Constraints/Json/Protocol.php index d0f41ed7d..e246d0d53 100644 --- a/packages/testing/src/Constraints/Json/Protocol.php +++ b/packages/testing/src/Constraints/Json/Protocol.php @@ -47,7 +47,7 @@ public static function getUri(SplFileInfo $file, array $parameters = []): Uri { // Build $scheme = static::Scheme; - $query = http_build_query($parameters, encoding_type: PHP_QUERY_RFC3986); + $query = http_build_query($parameters, '', '&', PHP_QUERY_RFC3986); $path = implode('/', array_map(rawurlencode(...), explode('/', ltrim($path, '/')))); $uri = new Uri((array) parse_url("{$scheme}://{$host}/{$path}?{$query}"));