Line 126 in /home/gap/public_html/vendor/silverstripe/framework/src/ORM/Filters/ExactMatchFilter.php
117 protected function manyFilter(DataQuery $query, $inclusive) 118 { 119 $this->model = $query->applyRelation($this->relation); 120 $caseSensitive = $this->getCaseSensitive(); 121 122 // Check values for null 123 $field = $this->getDbName(); 124 $values = $this->getValue(); 125 if (empty($values)) { 126 throw new \InvalidArgumentException("Cannot filter {$field} against an empty set"); 127 } 128 $hasNull = in_array(null, $values, true); 129 if ($hasNull) { 130 $values = array_filter($values, function ($value) { 131 return $value !== null; 132 });