Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#46856 closed defect (bug) (fixed)

Incorrect type docblock annotations for some variables in wp-includes/class-wp-customize-widgets.php

Reported by: diddledani Owned by: SergeyBiryukov
Priority: normal Milestone: 5.3
Component: Customize Version:
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

The type annotation for $context_sidebar_instance_number is set to int.
The type annotations for $rendering_widget_id and $rendering_sidebar_id are set to string.

Each of these are sometimes assigned null. The attached patch fixes their respective docblock type annotations to also include null.

Attachments (1)

46856.diff​ (1.7 KB ) - added by diddledani 8 years ago.
patch to change type annotations in docblock for specific variables to also include null

Download all attachments as: .zip

Change History (3)

@diddledani
8 years ago

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

#1 @SergeyBiryukov
8 years ago

  • Component General → Customize
  • Focuses docs added
  • Milestone Awaiting Review → 5.3

Related: #46852-46854

#2 @SergeyBiryukov
7 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 45429:

Docs: Correct @type annotation for WP_Customize_Widgets properties.

Props diddledan.
Fixes #46856.

Note: See TracTickets for help on using tickets.