framework icon indicating copy to clipboard operation
framework copied to clipboard

Uncaught TypeError: Argument 1 passed to Autarky\Errors\ErrorHandlerManager::handle() must be an instance of Exception, instance of Error

Open harikt opened this issue 5 years ago • 3 comments

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

harikt avatar Oct 25 '19 08:10 harikt

I think we probably need to change the Exception to Throwable . https://www.php.net/manual/en/language.errors.php7.php

harikt avatar Oct 25 '19 16:10 harikt

Seems fine to change this, since PHP 5 is no longer supported. Would you mind opening a PR?

anlutro avatar Oct 25 '19 18:10 anlutro

Sure. I will try to send one. Thank you.

harikt avatar Oct 26 '19 02:10 harikt