[buddypress-trac] [BuddyPress] #5031: Invalid PHPDoc: @return The one true BuddyPress Instance
buddypress-trac
noreply at wordpress.org
Wed May 29 11:18:12 UTC 2013
#5031: Invalid PHPDoc: @return The one true BuddyPress Instance
--------------------------+-----------------------------
Reporter: tivnet | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 1.7
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
`@return` must specify a type. In this case, it's class `BuddyPress`
A correct way would be:
{{{
* @return BuddyPress The one true BuddyPress Instance
*/
public static function instance() {
}}}
and
{{{
* @return BuddyPress The one true BuddyPress Instance
*/
function buddypress() {
return BuddyPress::instance();
}
}}}
Note also the proper capitalization of `BuddyPress` in the return
statement.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5031>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list