getGroupValues($context, $groupName); if ($minCount > count(array_filter($occurrences))) { $exception = new ErrorValidationException( 'at least %s %s are required', [ $minCount, $alias ] ); $exception->setColumn($column); throw $exception; } } }