From 5bfe4ba48b2d5fbb30a897e8a6609247cbfa463c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Feb 2016 23:17:19 +0000 Subject: [PATCH] remove Exception from function signature of ajax_exception_handler, as php 7 throws Error not inherited from Exception, but Throwable does not exist in php < 7.0 --- json.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json.php b/json.php index 3ae33cc8a2..8e727118a2 100644 --- a/json.php +++ b/json.php @@ -31,9 +31,9 @@ function login_redirect(&$anon_account) * * Does NOT return! * - * @param Exception $e + * @param Exception|Error $e */ -function ajax_exception_handler(Exception $e) +function ajax_exception_handler($e) { // handle redirects without logging if (is_a($e, 'egw_exception_redirect'))