From a64d4fb0bdc39c21446950c1dd326b825541ff57 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Tue, 20 Apr 2021 00:03:44 -0400 Subject: [PATCH] PMCORE-2973 Review the WARNING in the file workflow/engine/methods/reportTables/reportTables_Ajax.php --- workflow/engine/methods/reportTables/reportTables_Ajax.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workflow/engine/methods/reportTables/reportTables_Ajax.php b/workflow/engine/methods/reportTables/reportTables_Ajax.php index 79d5df71f..fb09bff91 100644 --- a/workflow/engine/methods/reportTables/reportTables_Ajax.php +++ b/workflow/engine/methods/reportTables/reportTables_Ajax.php @@ -346,7 +346,9 @@ function to_camel_case ($str, $capitalise_first_char = true) if ($capitalise_first_char) { $str[0] = strtoupper( $str[0] ); } - $func = create_function( '$c', 'return strtoupper($c[1]);' ); + $func = function ($c) { + return strtoupper($c[1]); + }; return preg_replace_callback( '/_([a-z])/', $func, $str ); }