remove Exception from function signature of egw_exception_handler and _egw_log_exception, as php 7 throws Error not inherited from Exception, but Throwable does not exist in php < 7.0

This commit is contained in:
Ralf Becker 2016-02-14 17:54:14 +00:00
parent 8246768f59
commit b5aeadf265

View File

@ -1777,10 +1777,10 @@ function json_php_unserialize($str, $allow_not_serialized=false)
/**
* Clasify exception for a headline and log it to error_log, if not running as cli
*
* @param Exception $e
* @param Exception|Error $e
* @param string &$headline
*/
function _egw_log_exception(Exception $e,&$headline=null)
function _egw_log_exception($e,&$headline=null)
{
$trace = explode("\n", $e->getTraceAsString());
if ($e instanceof egw_exception_no_permission)
@ -1824,9 +1824,9 @@ function _egw_log_exception(Exception $e,&$headline=null)
*
* Does NOT return
*
* @param Exception $e
* @param Exception|Error $e
*/
function egw_exception_handler(Exception $e)
function egw_exception_handler($e)
{
// handle redirects without logging
if (is_a($e, 'egw_exception_redirect'))