[wp-trac] [WordPress Trac] #56581: Wrong doc in WP_Block_Parser class
WordPress Trac
noreply at wordpress.org
Sat Sep 17 17:12:06 UTC 2022
#56581: Wrong doc in WP_Block_Parser class
--------------------------+-----------------------------
Reporter: Chouby | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Editor | Version: 5.0
Severity: trivial | Resolution: fixed
Keywords: has-patch | Focuses: docs
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"54194" 54194]:
{{{
#!CommitTicketReference repository="" revision="54194"
Docs: Correct `@return` type for `WP_Block_Parser::parse()`.
This affects:
* `WP_Block_Parser::parse()`
* `WP_Block_Parser::$output`
Both the method and the property are documented as returning
`WP_Block_Parser_Block[]` (an array of `WP_Block_Parser_Block` objects),
but the result is in fact an array of arrays of various values, so
`array[]` is the correct notation.
Follow-up to [43751] for the 5.0 branch, [44116] for trunk.
Props Chouby.
Fixes #56581.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56581#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list