Skip to content

Indicate return types #15

Description

@luckydonald

The current version

/**
 * start_union - Creates a new database object to be used for unions
 *
 * @return A new database object to use for a union query
 */
function start_union(){
	$this->unions++;
	return $this->start_subquery('');
}

Causes
image
Because the A from "A new database..." is the first argument here.

Instead the first word should be the returned type:

/**
 * @return CI_Loader A new database object to use for a union query
 */

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions