Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions libraries/src/Exception/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static function render($error)
ob_end_clean();
}

// This is needed to ensure the test suite can still get the output buffer
// This is needed to ensure the test suite can still get the output buffer
ob_start();

$document->setTitle(Text::_('ERROR') . ': ' . $error->getCode());
Expand Down Expand Up @@ -171,21 +171,6 @@ public static function render($error)
jexit(1);
}

/**
* Returns name of function, that called current routine or false on failure. Current routine is
* routine, calling {@see getCallerMethod}.
*
* @return string|false
*
* @since 3.10.0
*/
protected static function getCallerFunctionName()
{
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);

return isset($backtrace[2]['function']) ? $backtrace[2]['function'] : false;
}

/**
* Checks if given error belong to PHP exception class (\Throwable for PHP 7+, \Exception for PHP 5-).
*
Expand Down