Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Always use parentheses when instantiating an object.

Note: This will be enforced by WPCS 3.0.0.

Props jrf.
See #56791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/types.php

    r53126 r54891  
    257257        $this->assertNull( get_post_type_object( array() ) );
    258258        $this->assertNull( get_post_type_object( array( 'foo' ) ) );
    259         $this->assertNull( get_post_type_object( new stdClass ) );
     259        $this->assertNull( get_post_type_object( new stdClass() ) );
    260260
    261261        _unregister_post_type( 'foo' );
Note: See TracChangeset for help on using the changeset viewer.