Skip to content

Commit

Permalink
"TypeError: http_build_query(): Argument #3 ($arg_separator) must be …
Browse files Browse the repository at this point in the history
…of type string, null given" fix.
  • Loading branch information
LastDragon-ru committed Oct 20, 2023
1 parent 5cc3154 commit b1bf3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/testing/src/Constraints/Json/Protocol.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}"));

Expand Down

0 comments on commit b1bf3a9

Please sign in to comment.