summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-24 16:08:05 +0200
committerThomas Lange <code@nerdmind.de>2017-04-24 16:12:02 +0200
commit1269b210f28591b3fda52ecc41b9d7bf1e598555 (patch)
treefd9f132cef6d3d719fd4fab587e0c9b1cc0245cd
parent076c34c4f25c5695059d37e1bb6a262f6b7eedb6 (diff)
downloadblog-1269b210f28591b3fda52ecc41b9d7bf1e598555.tar.gz
blog-1269b210f28591b3fda52ecc41b9d7bf1e598555.tar.xz
blog-1269b210f28591b3fda52ecc41b9d7bf1e598555.zip
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".
-rw-r--r--core/application.php2
1 files changed, 1 insertions, 1 deletions
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());
});