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/rest-api/rest-post-meta-fields.php

    r54402 r54891  
    248248        /** @var WP_REST_Server $wp_rest_server */
    249249        global $wp_rest_server;
    250         $wp_rest_server = new Spy_REST_Server;
     250        $wp_rest_server = new Spy_REST_Server();
    251251        do_action( 'rest_api_init', $wp_rest_server );
    252252    }
     
    381381        /** @var WP_REST_Server $wp_rest_server */
    382382        global $wp_rest_server;
    383         $wp_rest_server = new Spy_REST_Server;
     383        $wp_rest_server = new Spy_REST_Server();
    384384        do_action( 'rest_api_init', $wp_rest_server );
    385385
Note: See TracChangeset for help on using the changeset viewer.