DbObject: Fix return type of get & list methods

This commit is contained in:
Benjamin Renard 2024-09-19 10:38:47 +02:00
parent e6f3fc835e
commit 5e7bdb1d3d
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -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();