json-exception-handler icon indicating copy to clipboard operation
json-exception-handler copied to clipboard

SMartins\Exceptions\Handlers\Handler can't handle non-exception throwables.

Open guice opened this issue 4 years ago • 0 comments

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.

guice avatar Aug 24 '20 23:08 guice