Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error boolean given when submitting form type constraint #275

Open
arirangz opened this issue Sep 15, 2021 · 0 comments
Open

Error boolean given when submitting form type constraint #275

arirangz opened this issue Sep 15, 2021 · 0 comments

Comments

@arirangz
Copy link

Hello,

We are getting this error using 1.5.26 and php 5.6 when submitting using isTrueV3 in the form type :
"Catchable Fatal Error: Argument 1 passed to EWZ\Bundle\RecaptchaBundle\Validator\Constraints\IsTrueValidatorV3::__construct()
must be an instance of EWZ\Bundle\RecaptchaBundle\Validator\Constraints\bool, boolean given

In the form type

->add('recaptcha', EWZRecaptchaV3Type::class, array(
'constraints' => array(
new IsTrueV3()
)
))

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant