WordPress.org

Make WordPress Core

Ticket #46856: 46856.diff

File 46856.diff, 1.7 KB (added by diddledan, 6 months ago)

patch to change type annotations in docblock for specific variables to also include null

  • wp-includes/class-wp-customize-widgets.php

    diff --git a/wp-includes/class-wp-customize-widgets.php b/wp-includes/class-wp-customize-widgets.php
    index 47f7db1584..f1edff4b42 100644
    a b final class WP_Customize_Widgets { 
    17381738         * The current request's sidebar_instance_number context.
    17391739         *
    17401740         * @since 4.5.0
    1741          * @var int
     1741         * @var int|null
    17421742         */
    17431743        protected $context_sidebar_instance_number;
    17441744
    final class WP_Customize_Widgets { 
    17901790         * Current sidebar being rendered.
    17911791         *
    17921792         * @since 4.5.0
    1793          * @var string
     1793         * @var string|null
    17941794         */
    17951795        protected $rendering_widget_id;
    17961796
    final class WP_Customize_Widgets { 
    17981798         * Current widget being rendered.
    17991799         *
    18001800         * @since 4.5.0
    1801          * @var string
     1801         * @var string|null
    18021802         */
    18031803        protected $rendering_sidebar_id;
    18041804