You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* 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
The text was updated successfully, but these errors were encountered:
RivenSkaye
added a commit
to RivenSkaye/PHP-MySQLi-Database-Class
that referenced
this issue
Jul 24, 2023
FixesThingEngineer#1016 by setting the defaults to an empty string; This matches nothing without notices about nulls.
FixesThingEngineer#1013 by defaulting to false instead of not initializing.
FixesThingEngineer#1015 by adding the missing null in the docstring. Re-aligned the other lines and fixed a typo.
FixesThingEngineer#1001 by special handling of stdClass objects
Current phpDoc for getValue is this :
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
The text was updated successfully, but these errors were encountered: