mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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:
@@ -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() ),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user