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 7 Throwable support: Error handling type declarations have been removed and work in PHP 5.x and PHP 7.x #106

Closed
wants to merge 2 commits into from

Conversation

cmstone
Copy link
Contributor

@cmstone cmstone commented Dec 22, 2015

No description provided.

@@ -454,9 +454,9 @@ public function setSendCode($sendCode)
* @param Array $metaData optional metaData to send with this error
* @param String $severity optional severity of this error (fatal/error/warning/info)
*/
public function notifyException(Exception $exception, array $metaData = null, $severity = null)
public function notifyException($throwable, array $metaData = null, $severity = null)
Copy link
Contributor

Choose a reason for hiding this comment

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

The documentation for this method should probably be updated to indicate a throwable is accepted here

@kattrali
Copy link
Contributor

Looks good, I'm going to do a few extra tests (and try to resolve the build error on CI). Thanks, @cmstone.

kattrali added a commit that referenced this pull request Dec 23, 2015
@kattrali
Copy link
Contributor

I merged this manually in 679ff2f (the original commit is here). Thank you for the contribution!

@kattrali kattrali closed this Dec 23, 2015
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.

None yet

2 participants