JMSDebuggingBundle icon indicating copy to clipboard operation
JMSDebuggingBundle copied to clipboard

ExceptionHandler not supporting PHP7 Error

Open martinopic opened this issue 8 years ago • 1 comments

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.

martinopic avatar Oct 18 '16 08:10 martinopic

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?

davividal avatar Apr 26 '17 16:04 davividal