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/src/wp-includes/functions.php

    r54877 r54891  
    43034303        }
    43044304    } elseif ( is_object( $data ) ) {
    4305         $output = new stdClass;
     4305        $output = new stdClass();
    43064306        foreach ( $data as $id => $el ) {
    43074307            if ( is_string( $id ) ) {
Note: See TracChangeset for help on using the changeset viewer.