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

ExceptionHandler not supporting PHP7 Error #88

Open
martinopic opened this issue Oct 18, 2016 · 1 comment
Open

ExceptionHandler not supporting PHP7 Error #88

martinopic opened this issue Oct 18, 2016 · 1 comment

Comments

@martinopic
Copy link

Hi,

while using JMSDebuggingBundle with a PHP7 project we keep receiving

 Uncaught TypeError: Argument 1 passed to JMS\DebuggingBundle\Kernel\ExceptionHandler::handle() must be an instance of Exception, instance of Error given

That's most likely because PHP7 replaced old error handling system with the new Error Throwable which is not an Exception though (http://php.net/manual/en/class.error.php).

It just seems the bundle is not usable with PHP7 projects.

@davividal
Copy link

I was having the same problem. It turns out I was missing a class from my autoloader. Fixing composer and dumping the autoload again solved the issue.
I figured this out thanks to #87 . Maybe this is your case also?

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

No branches or pull requests

2 participants