diff --git a/model/DataList.php b/model/DataList.php index 5699730e8..9f1a83114 100644 --- a/model/DataList.php +++ b/model/DataList.php @@ -372,8 +372,10 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab /** * Return a new instance of the list with an added filter + * + * @param array $filterArray */ - public function addFilter($filterArray) { + public function addFilter(array $filterArray) { $list = $this; foreach($filterArray as $field => $value) {