From f264ff861664c0095211eaace33fccdaf1f60b32 Mon Sep 17 00:00:00 2001 From: Nicolaas Date: Thu, 23 Jul 2020 22:40:14 +1200 Subject: [PATCH] PATCH: improving @return values in docblocks --- src/Forms/FieldList.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Forms/FieldList.php b/src/Forms/FieldList.php index 6d96dfc11..eac95b74d 100644 --- a/src/Forms/FieldList.php +++ b/src/Forms/FieldList.php @@ -380,7 +380,7 @@ class FieldList extends ArrayList * @param FormField $newField The field object to replace with * @param boolean $dataFieldOnly If this is true, then a field will only be replaced if it's a data field. Dataless * fields, such as tabs, will be not be considered for replacement. - * @return boolean TRUE field was successfully replaced + * @return bool TRUE field was successfully replaced * FALSE field wasn't found, nothing changed */ public function replaceField($fieldName, $newField, $dataFieldOnly = true) @@ -404,7 +404,7 @@ class FieldList extends ArrayList * * @param string $fieldName Name of field to rename title of * @param string $newFieldTitle New title of field - * @return boolean + * @return bool */ public function renameField($fieldName, $newFieldTitle) { @@ -419,7 +419,7 @@ class FieldList extends ArrayList } /** - * @return boolean + * @return bool */ public function hasTabSet() { @@ -512,7 +512,7 @@ class FieldList extends ArrayList * @todo Implement similarly to dataFieldByName() to support nested sets - or merge with dataFields() * * @param string $name - * @return FormField + * @return FormField|null */ public function fieldByName($name) { @@ -548,7 +548,7 @@ class FieldList extends ArrayList * Use this if you're using nested FormFields. * * @param string $name The name of the field to return - * @return FormField instance + * @return FormField|null */ public function dataFieldByName($name) {