From 11694ffe7c0f1d9cf70293821e52eddbaff46194 Mon Sep 17 00:00:00 2001 From: Martin Price Date: Fri, 25 Nov 2022 03:51:21 +0000 Subject: [PATCH] Issue #141: Fix PHP 8.1 issue on backtrace_error_handler() By @yorkshire-pudding and @alanmels. --- devel.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel.module b/devel.module index 1ddcfb2..ead88e7 100644 --- a/devel.module +++ b/devel.module @@ -587,7 +587,7 @@ function devel_boot() { * 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, $line, $context = NULL) { // Hide stack trace and parameters from unqualified users. if (!user_access('access devel information')) { // Do what core does in bootstrap.inc and errors.inc.