From 9234c64378c7afbd08d72838aabbd83746ac456c Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Wed, 26 May 2021 10:08:12 +0100 Subject: [PATCH] Specify alternative for error_log forbidden function. --- moodle/Sniffs/PHP/ForbiddenFunctionsSniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moodle/Sniffs/PHP/ForbiddenFunctionsSniff.php b/moodle/Sniffs/PHP/ForbiddenFunctionsSniff.php index c03a8b98..62262373 100644 --- a/moodle/Sniffs/PHP/ForbiddenFunctionsSniff.php +++ b/moodle/Sniffs/PHP/ForbiddenFunctionsSniff.php @@ -59,7 +59,7 @@ class ForbiddenFunctionsSniff extends GenericForbiddenFunctionsSniff { // Usual development debugging functions. 'sizeof' => 'count', 'delete' => 'unset', - 'error_log' => null, + 'error_log' => 'debugging', 'print_r' => null, 'print_object' => null, // Dangerous functions. From coding style.