[wp-trac] [WordPress Trac] #62561: Inaccurate PHPDoc Type for WP_Block_Parser_Frame::leading_html_start
WordPress Trac
noreply at wordpress.org
Sun Nov 24 23:42:40 UTC 2024
#62561: Inaccurate PHPDoc Type for WP_Block_Parser_Frame::leading_html_start
-------------------------+-----------------------------
Reporter: marian1 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: trivial | Keywords: needs-patch
Focuses: docs |
-------------------------+-----------------------------
The documented type for the property
`WP_Block_Parser_Frame::leading_html_start` is `int`. However,
`WP_Block_Parser_Frame::leading_html_start` may also be `null`.
The property's value is determined by the constructor, where
`$leading_html_start` is an optional parameter with a default value of
`null`. Therefore, unless an integer is explicitly provided, the value of
`WP_Block_Parser_Frame::leading_html_start` will remain `null`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62561>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list