[wp-trac] [WordPress Trac] #59619: Remove discouraged `@return void` annotations
WordPress Trac
noreply at wordpress.org
Fri Oct 13 16:53:46 UTC 2023
#59619: Remove discouraged `@return void` annotations
--------------------------+-------------------------
Reporter: flixos90 | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.4
Component: General | Version:
Severity: normal | Keywords: needs-patch
Focuses: docs |
--------------------------+-------------------------
See https://developer.wordpress.org/coding-standards/inline-documentation-
standards/php/#:~:text=Note%3A%20%40return%20void%20should%20not%20be%20used%20outside%20of%20the%20default%20bundled%20themes.
> Note: `@return void` should not be used outside of the default bundled
themes.
There were a few PHP instances of `@return void` added in 6.4, and other
recent releases and thus violate that guideline.
Let's fix this throughout, except for themes (per the above), third-party
libraries, and PHP compatibility code.
Also see relevant Gutenberg change for reference:
https://github.com/WordPress/gutenberg/pull/55237
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59619>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list