Skip to content

Fix phpDoc for getValue function #1015

Closed
@xoex

Description

Current phpDoc for getValue is this :

/**
     * A convenient SELECT COLUMN function to get a single column value from one row
     *
     * @param string $tableName The name of the database table to work with.
     * @param string $column    The desired column
     * @param int    $limit     Limit of rows to select. Use null for unlimited..1 by default
     *
     * @return mixed Contains the value of a returned column / array of values
     * @throws Exception
     */
    public function getValue($tableName, $column, $limit = 1)

But $limit can be null to get an array for a single column, so this should change to :

* @param int|null $limit Limit of rows to select. Use null for unlimited..1 by default

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