Make WordPress Core


Ignore:
Timestamp:
01/10/2015 06:53:48 AM (9 years ago)
Author:
wonderboymusic
Message:

Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value. Constructors do not have meaningful return values, anything that is returned from here is discarded.

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-error.php

    r30681 r31126  
    5454     * @param string $message Error message
    5555     * @param mixed $data Optional. Error data.
    56      * @return WP_Error
    5756     */
    5857    public function __construct( $code = '', $message = '', $data = '' ) {
Note: See TracChangeset for help on using the changeset viewer.