Commit 1640125
committed
Docs: Correct the
The property was documented as `int`, but the constructor declares `$leading_html_start` as an optional parameter defaulting to `null` and assigns it straight through, so the property holds `null` whenever no offset is supplied. This is unlike the neighboring `$prev_offset`, which is coalesced to a computed integer and therefore is accurately documented as `int`. The property is now documented as `int|null`, matching the constructor's own parameter documentation.
Developed in WordPress#7881.
Follow-up to r56048, r61504.
Props marian1, mukesh27.
Fixes #62561.
git-svn-id: https://develop.svn.wordpress.org/trunk@63444 602fd350-edb4-49c9-b593-d223f7449a82WP_Block_Parser_Frame::leading_html_start type.1 parent a036d30 commit 1640125
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments