Make WordPress Core


Ignore:
Timestamp:
05/24/2015 05:39:47 AM (9 years ago)
Author:
wonderboymusic
Message:

Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it.

See #32444.

File:
1 edited

Legend:

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

    r31188 r32568  
    145145     *
    146146     * @param string|int $code Optional. Error code.
    147      * @return mixed Null, if no errors.
     147     * @return mixed Error data, if it exists.
    148148     */
    149149    public function get_error_data($code = '') {
     
    153153        if ( isset($this->error_data[$code]) )
    154154            return $this->error_data[$code];
    155         return null;
    156155    }
    157156
Note: See TracChangeset for help on using the changeset viewer.