Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (20 months 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/dependencies/scripts.php

    r54349 r54891  
    277277     */
    278278    public function test_group_mismatch_in_deps() {
    279         $scripts = new WP_Scripts;
     279        $scripts = new WP_Scripts();
    280280        $scripts->add( 'one', 'one', array(), 'v1', 1 );
    281281        $scripts->add( 'two', 'two', array( 'one' ) );
     
    296296        $this->assertContains( 'three', $scripts->done );
    297297
    298         $scripts = new WP_Scripts;
     298        $scripts = new WP_Scripts();
    299299        $scripts->add( 'one', 'one', array(), 'v1', 1 );
    300300        $scripts->add( 'two', 'two', array( 'one' ), 'v1', 1 );
Note: See TracChangeset for help on using the changeset viewer.