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-tags-controller.php

    r54090 r54891  
    12121212
    12131213    public function test_prepare_item_limit_fields() {
    1214         $request  = new WP_REST_Request;
     1214        $request  = new WP_REST_Request();
    12151215        $endpoint = new WP_REST_Terms_Controller( 'post_tag' );
    12161216        $request->set_param( '_fields', 'id,name' );
Note: See TracChangeset for help on using the changeset viewer.