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

    r54090 r54891  
    975975        wp_set_current_user( self::$user );
    976976
    977         $request = new WP_REST_Request;
     977        $request = new WP_REST_Request();
    978978        $request->set_param( 'context', 'edit' );
    979979        $user = get_user_by( 'id', get_current_user_id() );
     
    985985        wp_set_current_user( self::$user );
    986986
    987         $request = new WP_REST_Request;
     987        $request = new WP_REST_Request();
    988988        $request->set_param( 'context', 'edit' );
    989989        $request->set_param( '_fields', 'id,name' );
Note: See TracChangeset for help on using the changeset viewer.