FIX Ensure consistent return type for FieldList::removeByName

This commit is contained in:
Robbie Averill 2018-03-14 19:40:17 +13:00
parent 856e89998b
commit a9cc4d4844

View File

@ -351,7 +351,7 @@ class FieldList extends ArrayList
foreach ($fieldName as $field) { foreach ($fieldName as $field) {
$this->removeByName($field, $dataFieldOnly); $this->removeByName($field, $dataFieldOnly);
} }
return; return $this;
} }
$this->flushFieldsCache(); $this->flushFieldsCache();