Make WordPress Core

Opened 7 weeks ago

Last modified 7 weeks ago

#62561 new enhancement

Inaccurate PHPDoc Type for WP_Block_Parser_Frame::leading_html_start

Reported by: marian1's profile marian1 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.


7 weeks ago
#1

  • Keywords has-patch added; needs-patch removed

@mukesh27 commented on PR #7881:


7 weeks ago
#2

What about WP_Block_Parser_Frame::prev_offset?

@marian1 commented on PR #7881:


7 weeks ago
#3

What about WP_Block_Parser_Frame::prev_offset?

It is correctly documented.

Note: See TracTickets for help on using tickets.