Make WordPress Core


Ignore:
Timestamp:
01/15/2021 08:06:50 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false.

Follow-up to [46696], [47060], [49926], [49927], [49929].

See #51800.

File:
1 edited

Legend:

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

    r49927 r49963  
    2828     * @param string $supports Optional, not used. When implemented it will choose
    2929     *                         the right compression based on what the server supports.
    30      * @return string|false False on failure.
     30     * @return string|false Compressed string on success, false on failure.
    3131     */
    3232    public static function compress( $raw, $level = 9, $supports = null ) {
     
    4646     * @param string $compressed String to decompress.
    4747     * @param int    $length     The optional length of the compressed data.
    48      * @return string|false False on failure.
     48     * @return string|false Decompressed string on success, false on failure.
    4949     */
    5050    public static function decompress( $compressed, $length = null ) {
     
    9999     *
    100100     * @param string $gzData String to decompress.
    101      * @return string|false False on failure.
     101     * @return string|false Decompressed string on success, false on failure.
    102102     */
    103103    public static function compatible_gzinflate( $gzData ) {
Note: See TracChangeset for help on using the changeset viewer.