Merge pull request #9608 from sunnysideup/patch-3

PATCH: fix doctype return type hints: add null
This commit is contained in:
Loz Calver 2020-07-23 10:24:56 +01:00 committed by GitHub
commit abc702e63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{