Skip to content

Commit 7b62acd

Browse files
authored
Merge pull request #2702 from WordPress/feature/restrictedphpfunctions-fix-message
2 parents 3c514da + 6a2ec07 commit 7b62acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Sniffs/PHP/RestrictedPHPFunctionsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getGroups() {
3535
return array(
3636
'create_function' => array(
3737
'type' => 'error',
38-
'message' => '%s() is deprecated as of PHP 7.2 and removed in PHP 8.0. Please use declared named or anonymous functions instead.',
38+
'message' => '%s() internally performs an eval(), which makes this a very dangerous function. For this reason, it was deprecated as of PHP 7.2 and removed in PHP 8.0. Please use anonymous functions, or declare a named function instead.',
3939
'functions' => array(
4040
'create_function',
4141
),

0 commit comments

Comments
 (0)