Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP client sourcecode generated broken for guzzlehttp/psr7 v 2.0.0 #11087

Closed
riccafi opened this issue Jul 7, 2021 · 1 comment
Closed

PHP client sourcecode generated broken for guzzlehttp/psr7 v 2.0.0 #11087

riccafi opened this issue Jul 7, 2021 · 1 comment

Comments

@riccafi
Copy link
Contributor

riccafi commented Jul 7, 2021

Description

Library guzzlehttp/psr7 has released new 2.0.0 version. changelog .
With version 1.* guzzlehttp/psr7 started to introduce Query::build class method in place of future deprecated function build_query .
Since version 2.0.0, old deprecated function build_query has been dropped going to require Query::build instead.
Swagger codegen generates sourcecode using the old function that is no more existent, giving run time exception.

Swagger-codegen version

3.0.27

Command line used for generation

./bin/php-petstore.sh

Steps to reproduce

Download the source code.
Build the code.
Launch the previous command (./bin/php-petstore.sh ).

Related issues/PRs

PR guzzle http psr7 2.0 compliant

@frantuma
Copy link
Member

fixed by #11104 (including and replacing #11086)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants