Bug Report Checklist
Description
Calling *AsyncWithHttpInfo breaks if a ConnectException is thrown, as this doesn't provide the getResponse method which is used in exception handling. *WithHttpInfo does this correctly and has a dedicated catch-branch for this.
openapi-generator version
docker image latest, branch master, e.g. now v7.21.0
OpenAPI declaration file content or url
not related to a specific declaration, applies to all due to the error handling
Generation Details
does not apply
Steps to reproduce
does not apply
Related issues/PRs
#23455
Suggest a fix
Exception handling breaks for the Exception being of type ConnectException in https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php/api.mustache#L485, needs same logic as https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php/api.mustache#L485
Bug Report Checklist
Description
Calling
*AsyncWithHttpInfobreaks if a ConnectException is thrown, as this doesn't provide thegetResponsemethod which is used in exception handling.*WithHttpInfodoes this correctly and has a dedicated catch-branch for this.openapi-generator version
docker image
latest, branchmaster, e.g. nowv7.21.0OpenAPI declaration file content or url
not related to a specific declaration, applies to all due to the error handling
Generation Details
does not apply
Steps to reproduce
does not apply
Related issues/PRs
#23455
Suggest a fix
Exception handling breaks for the Exception being of type ConnectException in https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php/api.mustache#L485, needs same logic as https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php/api.mustache#L485