- if (is_array($options) && array_key_exists('groups', $options)) {
- throw new ConstraintDefinitionException(sprintf(
- 'The option "groups" is not supported by the constraint %s',
- __CLASS__
- ));
+ if ('groups' === $option) {
+ // when this is reached, no groups have been configured
+ return null;