Skip to content

[PHP] Change APIException to expect headers as array#3838

Merged
wing328 merged 2 commits intoswagger-api:2.3.0from
kimsondrup:php-exception-headers
Sep 22, 2016
Merged

[PHP] Change APIException to expect headers as array#3838
wing328 merged 2 commits intoswagger-api:2.3.0from
kimsondrup:php-exception-headers

Conversation

@kimsondrup
Copy link
Copy Markdown
Contributor

In the ApiClient the headers param is always given array or null so the PHPDoc is definitely wrong.

I have made the pull request to v2.3.0 since the change of ApiException constructor param from $responseHeaders = null to array $responseHeaders = null technically speaking breaks backward compatibility by forcing array or null.

@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Sep 21, 2016

@BeneficialName thanks for the PR. I agree that it's a breaking change that should be submitted against the 2.3.0 branch.

cc @arnested

@wing328 wing328 added this to the v2.2.2 milestone Sep 21, 2016
@wing328 wing328 merged commit aad80b9 into swagger-api:2.3.0 Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants