Skip to content

Commit a0b69e0

Browse files
committed
[php] support guzzlehttp/guzzle ^7.0
1 parent 56bf094 commit a0b69e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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}" : ''),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ext-curl": "*",
2424
"ext-json": "*",
2525
"ext-mbstring": "*",
26-
"guzzlehttp/guzzle": "^6.2"
26+
"guzzlehttp/guzzle": "^6.2|^7.0"
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "^4.8",

0 commit comments

Comments
 (0)