[wp-trac] [WordPress Trac] #48613: Return type of _admin_notice_post_locked unknown phpdoc keyword

WordPress Trac noreply at wordpress.org
Wed Nov 13 21:10:47 UTC 2019


#48613: Return type of _admin_notice_post_locked unknown phpdoc keyword
----------------------------+-----------------------------
 Reporter:  diddledan       |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  trivial         |   Keywords:  has-patch
  Focuses:  docs            |
----------------------------+-----------------------------
 In `wp-admin/includes/post.php` the return type of
 `_admin_notice_post_locked` is documented as `none`, which is not a valid
 keyword according to the phpdoc specification:
 https://docs.phpdoc.org/guides/types.html

 The attached patch corrects `none` to be `void`. Alternatively the
 `@return` documentation tag might be removed altogether for the same
 effect.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48613>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list