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/meta.php

    r53948 r54891  
    402402     */
    403403    public function test_get_metadata_with_empty_key_object_value() {
    404         $data      = new stdClass;
     404        $data      = new stdClass();
    405405        $data->foo = 'bar';
    406406        $value     = serialize( $data );
Note: See TracChangeset for help on using the changeset viewer.