JMSDebuggingBundle
JMSDebuggingBundle copied to clipboard
ExceptionHandler not supporting PHP7 Error
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.
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?