[wp-trac] [WordPress Trac] #48616: Parameter type for $item in WP_REST_Terms_Controller::prepare_item_for_response() uses invalid phpdoc keyword
WordPress Trac
noreply at wordpress.org
Wed Nov 13 21:28:40 UTC 2019
#48616: Parameter type for $item in
WP_REST_Terms_Controller::prepare_item_for_response() uses invalid phpdoc
keyword
--------------------------+-----------------------------
Reporter: diddledan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: trivial | Keywords: has-patch
Focuses: docs |
--------------------------+-----------------------------
In `wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php` the
param type of `$item` for
`WP_REST_Terms_Controller::prepare_item_for_response()` is documented as
`obj`, which is not a valid keyword according to the phpdoc specification:
https://docs.phpdoc.org/guides/types.html
The attached patch corrects `obj` to be `object`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48616>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list