framework
framework copied to clipboard
Uncaught TypeError: Argument 1 passed to Autarky\Errors\ErrorHandlerManager::handle() must be an instance of Exception, instance of Error
I am trying to dig into it, in the mean time opening the issue.
[Fri Oct 25 14:23:11 2019] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Autarky\Errors\ErrorHandlerManager::handle() must be an instance of Exception, instance of Error given, called in /projects/harikt/autarky-skel/vendor/autarky/framework/classes/Errors/ErrorHandlerManager.php on line 260 and defined in /projects/harikt/autarky-skel/vendor/autarky/framework/classes/Errors/ErrorHandlerManager.php:129
Stack trace:
#0 /projects/harikt/autarky-skel/vendor/autarky/framework/classes/Errors/ErrorHandlerManager.php(260): Autarky\Errors\ErrorHandlerManager->handle(Object(Error))
#1 [internal function]: Autarky\Errors\ErrorHandlerManager->handleUncaught(Object(Error))
#2 {main}
thrown in /projects/harikt/autarky-skel/vendor/autarky/framework/classes/Errors/ErrorHandlerManager.php on line 129
I think we probably need to change the Exception to Throwable . https://www.php.net/manual/en/language.errors.php7.php
Seems fine to change this, since PHP 5 is no longer supported. Would you mind opening a PR?
Sure. I will try to send one. Thank you.