exception handler should handle throwables instead of exceptions

This commit is contained in:
msquare 2017-07-28 19:28:00 +02:00
parent a0af8d4624
commit 440ed74cd7
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
namespace Engelsystem\Exceptions; namespace Engelsystem\Exceptions;
use Exception; use Throwable;
class Handler class Handler
{ {
@ -38,9 +38,9 @@ class Handler
} }
/** /**
* @param Exception $e * @param Throwable $e
*/ */
public function exceptionHandler(Exception $e) public function exceptionHandler(Throwable $e)
{ {
$this->handle( $this->handle(
'exception', 'exception',