Skip to content

Handle \Throwable in the same way as \Exception - #51

Merged
jsor merged 1 commit into
reactphp:masterfrom
joshdifabio:master
Mar 24, 2016
Merged

Handle \Throwable in the same way as \Exception#51
jsor merged 1 commit into
reactphp:masterfrom
joshdifabio:master

Conversation

@joshdifabio

Copy link
Copy Markdown
Contributor

This is a backwards-compatible change which enables react/promise to handle PHP7's \Throwable in the same way it handles PHP5's \Exception.

I'd really love to get this merged asap as it's a trivial change which is backwards compatible and \Errors are currently causing instability in a production app which we've got running on PHP7.

@jsor

jsor commented Mar 24, 2016

Copy link
Copy Markdown
Member

LGTM :shipit: /ping @WyriHaximus @cboden @clue

@cboden

cboden commented Mar 24, 2016

Copy link
Copy Markdown
Member

LGTM

fixes #49

@WyriHaximus

Copy link
Copy Markdown
Member

Does it matter for PHP 5 that Throwable comes before Exception? Except from that LGTM :shipit:

@jsor

jsor commented Mar 24, 2016

Copy link
Copy Markdown
Member

@WyriHaximus i can't think of any reason (and tests pass).

@WyriHaximus

Copy link
Copy Markdown
Member

@jsor fair point, was just wondering :)

@jsor
jsor merged commit f2b2a12 into reactphp:master Mar 24, 2016
@jsor

jsor commented Mar 24, 2016

Copy link
Copy Markdown
Member

Thanks @joshdifabio, released in v2.3.0.

@joshdifabio

Copy link
Copy Markdown
Contributor Author

Brilliant, thanks for moving so quickly on this.
On 24 Mar 2016 9:23 p.m., "Jan Sorgalla" notifications@github.com wrote:

Thanks @joshdifabio https://github.com/joshdifabio, released in v2.3.0
https://github.com/reactphp/promise/releases/tag/v2.3.0.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#51 (comment)

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.

5 participants