Merge pull request #6249 from dhensby/pulls/3.4/fix-error-message

FIX filterAny error message now refers to correct method name
This commit is contained in:
Loz Calver 2016-10-31 09:02:49 +00:00 committed by GitHub
commit b6bbed8de0

View File

@ -434,7 +434,7 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab
} elseif($numberFuncArgs == 2) {
$whereArguments[func_get_arg(0)] = func_get_arg(1);
} else {
throw new InvalidArgumentException('Incorrect number of arguments passed to exclude()');
throw new InvalidArgumentException('Incorrect number of arguments passed to filterAny()');
}
return $this->alterDataQuery(function($query, $list) use ($whereArguments) {