From a9cc4d4844907d67b071b2867f6cea4b0d57749a Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Wed, 14 Mar 2018 19:40:17 +1300 Subject: [PATCH] FIX Ensure consistent return type for FieldList::removeByName --- src/Forms/FieldList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/FieldList.php b/src/Forms/FieldList.php index 414ecc622..2072a5dca 100644 --- a/src/Forms/FieldList.php +++ b/src/Forms/FieldList.php @@ -351,7 +351,7 @@ class FieldList extends ArrayList foreach ($fieldName as $field) { $this->removeByName($field, $dataFieldOnly); } - return; + return $this; } $this->flushFieldsCache();