WordPress.org

Make WordPress Core

Ticket #46860: 46860.diff

File 46860.diff, 1.2 KB (added by diddledan, 7 months ago)

patch to change type annotation in docblock to also include false

  • wp-includes/class-wp-http-curl.php

    diff --git a/wp-includes/class-wp-http-curl.php b/wp-includes/class-wp-http-curl.php
    index 1ee9957743..1261400da7 100644
    a b class WP_Http_Curl { 
    3838         * The maximum amount of data to receive from the remote server.
    3939         *
    4040         * @since 3.6.0
    41          * @var int
     41         * @var int|false
    4242         */
    4343        private $max_body_length = false;
    4444
    class WP_Http_Curl { 
    4646         * The file resource used for streaming to file.
    4747         *
    4848         * @since 3.6.0
    49          * @var resource
     49         * @var resource|false
    5050         */
    5151        private $stream_handle = false;
    5252