From c3e9e23dcffabd44099085a8ce1848b46bd5ca79 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 22 Jul 2023 12:35:15 +0000 Subject: [PATCH] Coding Standards: Always use parentheses for class instantiation. This addresses a `new stdClass()` instance in `_get_non_cached_ids()` tests. Follow-up to [55543]. Props jrf. See #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56281 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions/getNonCachedIds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/functions/getNonCachedIds.php b/tests/phpunit/tests/functions/getNonCachedIds.php index d8df0e11a6..07943bbdc8 100644 --- a/tests/phpunit/tests/functions/getNonCachedIds.php +++ b/tests/phpunit/tests/functions/getNonCachedIds.php @@ -97,7 +97,7 @@ class Tests_Functions_GetNonCachedIds extends WP_UnitTestCase { 'empty string' => array( '' ), 'array' => array( array( 1 ) ), 'empty array' => array( array() ), - 'stdClass' => array( new stdClass ), + 'stdClass' => array( new stdClass() ), ); } }