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/query.php

    r54496 r54891  
    3434     */
    3535    public function test_default_query_var() {
    36         $query = new WP_Query;
     36        $query = new WP_Query();
    3737        $this->assertSame( '', $query->get( 'nonexistent' ) );
    3838        $this->assertFalse( $query->get( 'nonexistent', false ) );
Note: See TracChangeset for help on using the changeset viewer.