From 214545cfc22dd24587c354d25ae5f49451011462 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 19 Sep 2024 10:38:47 +0200 Subject: [PATCH] DbObject: Fix return type of get & list methods --- src/Db/DbObject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Db/DbObject.php b/src/Db/DbObject.php index 500d37c..5a60519 100644 --- a/src/Db/DbObject.php +++ b/src/Db/DbObject.php @@ -225,7 +225,7 @@ class DbObject { * @param array $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 $where Where clauses as associative array of field name and value - * @return array|false + * @return array|false */ public static function list($where=null) { $class = get_called_class();