[wp-trac] [WordPress Trac] #46853: Incorrect type docblock annotation for $value in wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

WordPress Trac noreply at wordpress.org
Tue Apr 9 14:53:17 UTC 2019


#46853: Incorrect type docblock annotation for $value in wp-includes/customize
/class-wp-customize-nav-menu-item-setting.php
--------------------------+-----------------------------
 Reporter:  diddledan     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 `$value` is defined as an array type according to the docblock but
 occasionally might be assigned a `null` value. The attached patch fixes
 the docblock to also state that `null` is allowed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46853>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list