Skip to content

Commit

Permalink
Merge pull request #1158 from swagger-api/oprudkyi-fix/php-guzzlehttp-7
Browse files Browse the repository at this point in the history
Oprudkyi fix/php guzzlehttp 7
  • Loading branch information
HugoMario authored May 31, 2023
2 parents e9d508a + 13d94b0 commit 7684e26
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 7684e26

Please sign in to comment.