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-term-meta-fields.php

    r54090 r54891  
    195195        /** @var WP_REST_Server $wp_rest_server */
    196196        global $wp_rest_server;
    197         $wp_rest_server = new Spy_REST_Server;
     197        $wp_rest_server = new Spy_REST_Server();
    198198        do_action( 'rest_api_init', $wp_rest_server );
    199199    }
     
    328328        /** @var WP_REST_Server $wp_rest_server */
    329329        global $wp_rest_server;
    330         $wp_rest_server = new Spy_REST_Server;
     330        $wp_rest_server = new Spy_REST_Server();
    331331        do_action( 'rest_api_init', $wp_rest_server );
    332332
Note: See TracChangeset for help on using the changeset viewer.