[wp-trac] [WordPress Trac] #46856: Incorrect type docblock annotations for some variables in wp-includes/class-wp-customize-widgets.php
WordPress Trac
noreply at wordpress.org
Tue Apr 9 15:01:15 UTC 2019
#46856: Incorrect type docblock annotations for some variables in wp-includes
/class-wp-customize-widgets.php
--------------------------+-----------------------------
Reporter: diddledan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------------
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`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46856>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list