Coding Standards: Always use parentheses when instantiating an object.

Note: This will be enforced by WPCS 3.0.0.

Props jrf.
See #56791.

git-svn-id: https://develop.svn.wordpress.org/trunk@54891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-11-29 15:49:49 +00:00
parent 6821cb07ef
commit e50c65caf4
86 changed files with 166 additions and 166 deletions
+2 -2
View File
@@ -158,7 +158,7 @@ class Tests_Post extends WP_UnitTestCase {
_unregister_post_type( $post_type );
$count = wp_count_posts( $post_type, 'readable' );
$this->assertEquals( new stdClass, $count );
$this->assertEquals( new stdClass(), $count );
}
public function test_wp_count_posts_filtered() {
@@ -601,7 +601,7 @@ class Tests_Post extends WP_UnitTestCase {
'1 int' => array( 1 ),
'null' => array( null ),
'true' => array( true ),
'an object' => array( new stdClass ),
'an object' => array( new stdClass() ),
);
}