Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (22 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/src/wp-includes/class-wp-http.php

    r54663 r54891  
    582582        // Transport claims to support request, instantiate it and give it a whirl.
    583583        if ( empty( $transports[ $class ] ) ) {
    584             $transports[ $class ] = new $class;
     584            $transports[ $class ] = new $class();
    585585        }
    586586
Note: See TracChangeset for help on using the changeset viewer.