public function __construct($options = null)
{
- 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 (\is_array($options) && array_key_exists('groups', $options)) {
+ throw new ConstraintDefinitionException(sprintf('The option "groups" is not supported by the constraint %s', __CLASS__));
}
parent::__construct($options);