Skip to content

Fixes #31: Wrong parameters error when TimeoutException is thrown #32

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

Merged
merged 8 commits into from
Nov 30, 2017

Conversation

mrmiagi
Copy link
Contributor

@mrmiagi mrmiagi commented Nov 14, 2017

Modified the StreamException to accept optional Request as second param

* @param long $code
* @param Exception $previous
*/
public function __construct($message = null, RequestInterface $request = null, $code = null, $previous = null)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using $request as second constructor argument is a BC break. You must put it last to be BC.

@joelwurtz
Copy link
Member

Thanks for this PR and the correction aftewards, will release a new version in december

@joelwurtz joelwurtz merged commit e2833e0 into php-http:master Nov 30, 2017
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

Successfully merging this pull request may close these issues.

3 participants