Task/Validation/ValidatorTask.php
protected function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefault('log_errors', true);
        $resolver->addAllowedTypes('log_errors', ['bool']);

        $resolver->setDefault('groups', null);
        $resolver->addAllowedTypes('groups', ['NULL', 'array']);

        $resolver->setDefault('constraints', null);
        $resolver->addAllowedTypes('constraints', ['NULL', 'array']);
        $resolver->setNormalizer(
            'constraints',
            function (Options $options, $constraints) {
                if (null === $constraints) {
                    return null;
                }

                return (new BaseLoader())->loadCustomConstraints($constraints);
            }
        );
    }
protected function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefault('log_errors', true);
        $resolver->addAllowedTypes('log_errors', ['bool']);

        $resolver->setDefault('groups', null);
        $resolver->addAllowedTypes('groups', ['NULL', 'array']);

        $resolver->setDefault('constraints', null);
        $resolver->addAllowedTypes('constraints', ['NULL', 'array']);
        $resolver->setNormalizer(
            'constraints',
            function (Options $options, $constraints) {
                if (null === $constraints) {
                    return null;
                }

                return (new BaseLoader())->loadCustomConstraints($constraints);
            }
        );
    }
{@inheritDoc}