Commit ce53ffb1 authored by johne's avatar johne Committed by willzyx

Issue #3028204 by johne: Uncaught ArgumentCountError: Too few arguments to...

Issue #3028204 by johne: Uncaught ArgumentCountError: Too few arguments to function backtrace_error_handler
parent 4ca9e166
......@@ -183,14 +183,14 @@ function devel_set_handler($handlers) {
* @param string $message
* The error message.
* @param string $filename
* The filename that the error was raised in.
* (optional) The filename that the error was raised in.
* @param int $line
* The line number the error was raised at.
* (optional) The line number the error was raised at.
* @param array $context
* An array that points to the active symbol table at the point the error
* (optional) An array that points to the active symbol table at the point the error
* occurred.
*/
function backtrace_error_handler($error_level, $message, $filename, $line, $context) {
function backtrace_error_handler($error_level, $message, $filename = NULL, $line = NULL, $context = NULL) {
// Hide stack trace and parameters from unqualified users.
if (!\Drupal::currentUser()->hasPermission('access devel information')) {
// Do what core does in bootstrap.inc and errors.inc.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment