From 6f0487c2f0fe28fda6550b9e1ab1364f98376563 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 11 Jan 2019 06:07:50 +0000 Subject: [PATCH] Coding Standards: Ignore the violations of `Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase`. See #45934. git-svn-id: https://develop.svn.wordpress.org/trunk@44563 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/wp-db.php | 1 + tests/phpunit/wp-mail-real-test.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index c85c1692fd..a9d707464c 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -18,6 +18,7 @@ define( 'EZSQL_VERSION', 'WP1.25' ); * @since 0.71 */ define( 'OBJECT', 'OBJECT' ); +// phpcs:ignore Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase define( 'object', 'OBJECT' ); // Back compat. /** diff --git a/tests/phpunit/wp-mail-real-test.php b/tests/phpunit/wp-mail-real-test.php index 43c78bc22a..55bd090773 100644 --- a/tests/phpunit/wp-mail-real-test.php +++ b/tests/phpunit/wp-mail-real-test.php @@ -55,6 +55,7 @@ wp_install( WP_BLOG_TITLE, WP_USER_NAME, WP_USER_EMAIL, true ); // make sure we're installed assert( true == is_blog_installed() ); +// phpcs:ignore Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase define( 'PHPUnit_MAIN_METHOD', false ); $original_wpdb = $GLOBALS['wpdb'];