diff options
author | Gary Pendergast <pento@git.wordpress.org> | 2019-01-11 03:44:20 +0000 |
---|---|---|
committer | Gary Pendergast <pento@git.wordpress.org> | 2019-01-11 03:44:20 +0000 |
commit | 65f5fcb0fb44a4af4983176801f0e0d7034c1004 (patch) | |
tree | 3f5a8efc7357da07c12fc25679bf0d67a725a3df /tests/phpunit/includes/plural-form-function.php | |
parent | 63fbf4a31675484cb3db88987f257d9b77323977 (diff) | |
download | wordpress-65f5fcb0fb44a4af4983176801f0e0d7034c1004.tar.gz wordpress-65f5fcb0fb44a4af4983176801f0e0d7034c1004.zip |
Coding Standards: Ignore the single WordPress.PHP.RestrictedPHPFunctions.create_function_create_function violation.
This is intentional, for older PHP support.
See #45934.
git-svn-id: https://develop.svn.wordpress.org/trunk@44560 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/includes/plural-form-function.php')
-rw-r--r-- | tests/phpunit/includes/plural-form-function.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/phpunit/includes/plural-form-function.php b/tests/phpunit/includes/plural-form-function.php index acae4c8ba1..576ece6b03 100644 --- a/tests/phpunit/includes/plural-form-function.php +++ b/tests/phpunit/includes/plural-form-function.php @@ -12,5 +12,6 @@ function tests_make_plural_form_function( $nplurals, $expression ) { \$index = (int)($expression); return (\$index < $nplurals)? \$index : $nplurals - 1;"; + // phpcs:ignore WordPress.PHP.RestrictedPHPFunctions.create_function_create_function return create_function( '$n', $func_body ); } |