Skip to content

Commit

Permalink
Specify alternative for error_log forbidden function.
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin committed May 20, 2021
1 parent de4cecd commit 3a39ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moodle/Sniffs/PHP/ForbiddenFunctionsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DiscouragedFunctionsSniff extends GenericForbiddenFunctionsSniff
* @var array<string, string|null>
*/
public $forbiddenFunctions = [
'error_log' => null,
'error_log' => 'debugging',
'print_r' => null,
'var_dump' => null,
];
Expand Down

0 comments on commit 3a39ee8

Please sign in to comment.