From f907f2fb3a0503ef95c92a2e01e87f624e695bae Mon Sep 17 00:00:00 2001 From: Maarten Date: Thu, 27 Feb 2020 23:10:20 +0100 Subject: [PATCH] Exception handler make use of Factory make --- src/Runtime/Exceptions/ExceptionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Runtime/Exceptions/ExceptionHandler.php b/src/Runtime/Exceptions/ExceptionHandler.php index de20c01..a14528e 100644 --- a/src/Runtime/Exceptions/ExceptionHandler.php +++ b/src/Runtime/Exceptions/ExceptionHandler.php @@ -24,7 +24,7 @@ class ExceptionHandler { public static function make($abstract = null, $message = null) { if(is_string($abstract)) { - $abstract = new $abstract($message); + $abstract = app()->make($abstract, $message); } if(is_subclass_of($abstract, 'Exception')) {