From a247a3950bd016dc6c9f7a66f4707fbb1cd460a8 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Fri, 24 Mar 2017 18:49:04 +0900 Subject: [PATCH] Make exception handler PHP5 / PHP7 agnostic. --- inc/error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/error.php b/inc/error.php index da707911..1f66b977 100644 --- a/inc/error.php +++ b/inc/error.php @@ -8,7 +8,7 @@ function error_handler($errno,$errstr,$errfile, $errline, $errcontext){ return false; } -function exception_handler(Exception $e){ +function exception_handler($e){ error($e->getMessage()); }