From d292eb8840a8ee283c793e097a0ffa0a14cffdbc Mon Sep 17 00:00:00 2001 From: Nicolaas Date: Thu, 23 Jul 2020 21:10:17 +1200 Subject: [PATCH] PATCH: fix doctype return type hints: add null --- src/ORM/DataList.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ORM/DataList.php b/src/ORM/DataList.php index ac87c082f..a5be64bca 100644 --- a/src/ORM/DataList.php +++ b/src/ORM/DataList.php @@ -924,11 +924,11 @@ class DataList extends ViewableData implements SS_List, Filterable, Sortable, Li /** - * Returns the first item in this DataList + * Returns the first item in this DataList (instanceof DataObject) * * The object returned is not cached, unlike {@link DataObject::get_one()} * - * @return DataObject + * @return DataObject|null */ public function first() { @@ -939,11 +939,11 @@ class DataList extends ViewableData implements SS_List, Filterable, Sortable, Li } /** - * Returns the last item in this DataList + * Returns the last item in this DataList (instanceof DataObject) * * The object returned is not cached, unlike {@link DataObject::get_one()} * - * @return DataObject + * @return DataObject|null */ public function last() { @@ -1007,7 +1007,7 @@ class DataList extends ViewableData implements SS_List, Filterable, Sortable, Li * The object returned is not cached, unlike {@link DataObject::get_by_id()} * * @param int $id - * @return DataObject + * @return DataObject|null */ public function byID($id) {