Skip to content

Commit 7684e26

Browse files
authored
Merge pull request #1158 from swagger-api/oprudkyi-fix/php-guzzlehttp-7
Oprudkyi fix/php guzzlehttp 7
2 parents e9d508a + 13d94b0 commit 7684e26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/handlebars/php/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ use {{invokerPackage}}\ObjectSerializer;
448448
449449
} else {
450450
// for HTTP post (form)
451-
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
451+
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
452452
}
453453
}
454454

@@ -491,7 +491,7 @@ use {{invokerPackage}}\ObjectSerializer;
491491
$headers
492492
);
493493

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

0 commit comments

Comments
 (0)