From 1269b210f28591b3fda52ecc41b9d7bf1e598555 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 24 Apr 2017 16:08:05 +0200 Subject: Parameter type declaration changed to "Throwable" because this parameter can also be an "Error" which is not a child of "Exception" but each type implements the interface "Throwable". --- core/application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/application.php b/core/application.php index c1717a6..0a53350 100644 --- a/core/application.php +++ b/core/application.php @@ -23,7 +23,7 @@ spl_autoload_register(function($classname) { #=============================================================================== # Exception handler for non-caught exceptions #=============================================================================== -set_exception_handler(function(Exception $Exception) { +set_exception_handler(function(Throwable $Exception) { Application::exit($Exception->getMessage()); }); -- cgit v1.2.3