WordPress.org

Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#46852 new defect (bug)

$_changeset_data has incorrect type annotation in docblock

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

Description

$_changeset_data in class WP_Customize_Manager defined in wp_includes/class-wp-customize-manager.php has type annotation in the docblock of array but the class occasionally assigns a null to this variable. The attached patch adds null to the type annotation in addition to the array already there.

Attachments (1)

46852.diff (920 bytes) - added by diddledan 6 weeks ago.
patch to change type annotation in docblock from array to array|null

Download all attachments as: .zip

Change History (4)

@diddledan
6 weeks ago

patch to change type annotation in docblock from array to array|null

#1 @SergeyBiryukov
6 weeks ago

  • Component changed from General to Customize
  • Focuses docs added

#2 @SergeyBiryukov
6 weeks ago

  • Milestone changed from Awaiting Review to 5.3
Note: See TracTickets for help on using tickets.