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/formatting/wpSlash.php

    r53562 r54891  
    8585        $this->assertSame( array_values( $arr ), wp_slash( array_values( $arr ) ) ); // Non-keyed.
    8686
    87         $obj = new stdClass;
     87        $obj = new stdClass();
    8888        foreach ( $arr as $k => $v ) {
    8989            $obj->$k = $v;
Note: See TracChangeset for help on using the changeset viewer.