Opened 20 months ago
Last modified 20 months ago
#62561 new enhancement
Inaccurate PHPDoc Type for WP_Block_Parser_Frame::leading_html_start
| Reported by: | marian1 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
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.
Change History (3)
This ticket was mentioned in PR #7881 on WordPress/wordpress-develop by @marian1.
20 months ago
#1
- Keywords has-patch added; needs-patch removed
@mukesh27 commented on PR #7881:
20 months ago
#2
What about WP_Block_Parser_Frame::prev_offset?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/62561#ticket