diff options
author | Thomas Lange <code@nerdmind.de> | 2017-04-24 16:08:05 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-04-24 16:12:02 +0200 |
commit | 1269b210f28591b3fda52ecc41b9d7bf1e598555 (patch) | |
tree | fd9f132cef6d3d719fd4fab587e0c9b1cc0245cd /core | |
parent | 076c34c4f25c5695059d37e1bb6a262f6b7eedb6 (diff) | |
download | blog-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".
Diffstat (limited to 'core')
-rw-r--r-- | core/application.php | 2 |
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()); }); |