DbObject: Fix return type of get & list methods
This commit is contained in:
parent
e6f3fc835e
commit
5e7bdb1d3d
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ class DbObject {
|
|||
* @param array<mixed> $args Primary keys value in the same order as primary keys as declared
|
||||
* @see static :: PRIMARY_KEYS
|
||||
* @throws DbException
|
||||
* @return DbObject|null The object if found, else otherwise.
|
||||
* @return static|null The object if found, else otherwise.
|
||||
*/
|
||||
public static function get(...$args) {
|
||||
$class = get_called_class();
|
||||
|
@ -340,7 +340,7 @@ class DbObject {
|
|||
/**
|
||||
* List objects
|
||||
* @param array<string,mixed> $where Where clauses as associative array of field name and value
|
||||
* @return array<DbObject>|false
|
||||
* @return array<static>|false
|
||||
*/
|
||||
public static function list($where=null) {
|
||||
$class = get_called_class();
|
||||
|
|
Loading…
Reference in a new issue