Opened 13 months ago
Last modified 13 months ago
#62561 new enhancement
Inaccurate PHPDoc Type for WP_Block_Parser_Frame::leading_html_start
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | trivial | Version: | |
| Component: | General | Keywords: | has-patch |
| Focuses: | docs | Cc: |
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.
13 months ago
#1
- Keywords has-patch added; needs-patch removed
@mukesh27 commented on PR #7881:
13 months ago
#2
What about WP_Block_Parser_Frame::prev_offset?
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/62561#ticket