[wp-trac] [WordPress Trac] #27098: Bundled Themes: ditch all uses of `@return void`
WordPress Trac
noreply at wordpress.org
Mon Mar 24 11:18:53 UTC 2014
#27098: Bundled Themes: ditch all uses of `@return void`
-------------------------------+---------------------
Reporter: philiparthurmoore | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.9
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
-------------------------------+---------------------
Comment (by jond3r):
Replying to [comment:19 jond3r]:
>
> When the only return is {{{void}}} (i.e. "nothing") there is not much
hurt in omitting {{{@return void}}}, but maybe we can officially allow it
in "mixed" situations?
A recent example where {{{void}}} was used in a {{{@return}}},
specifically as
{{{ * @return bool|void}}}
was in [27575]. So I think we can say that {{{void}}} is allowed in mixed
cases.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27098#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list