json-exception-handler
json-exception-handler copied to clipboard
SMartins\Exceptions\Handlers\Handler can't handle non-exception throwables.
Getting type error mismatching when a non-Exception throwable is thrown:
TypeError : Argument 1 passed to SMartins\Exceptions\Handlers\AbstractHandler::__construct() must be an instance of Exception, instance of TypeError given, called in [....]/sfelix-martins/json-exception-handler/src/JsonHandler.php on line 20
__construct() needs to be updated to accept \Throwable
types.