excelwebzone / EWZRecaptchaBundle

This bundle provides easy reCAPTCHA form field for Symfony.
MIT License
396 stars 160 forks source link

Error boolean given when submitting form type constraint #275

Open arirangz opened 3 years ago

arirangz commented 3 years ago

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