Skip to content

Commit

Permalink
Merge branch 'fix/php-guzzlehttp-7' of https://github.com/oprudkyi/sw…
Browse files Browse the repository at this point in the history
…agger-codegen-generators into oprudkyi-fix/php-guzzlehttp-7

# Conflicts:
#	src/main/resources/handlebars/php/composer.mustache
  • Loading branch information
HugoMario committed May 31, 2023
2 parents e9d508a + ae2e840 commit 13d94b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/handlebars/php/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ use {{invokerPackage}}\ObjectSerializer;
} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand Down Expand Up @@ -491,7 +491,7 @@ use {{invokerPackage}}\ObjectSerializer;
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'{{httpMethod}}',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down

0 comments on commit 13d94b0

Please sign in to comment.