From 5296f2a7848c848a32b97011cc24ff3f7a69fbf1 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()); }