Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Validator] Add additional hint whenegulias/email-validator needs to be installed#47189
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
… for strict mode as default config
xabbuh commentedAug 4, 2022
What about also performing this check in the configuration itself? |
mpdude commentedAug 5, 2022
That might throw the exception also when the |
xabbuh commentedAug 5, 2022
Yeah, you are right. Probably it's better play safe here and not do that as a bugfix. |
fabpot commentedAug 5, 2022
Thank you@mpdude. |
When using the
Symfony\Component\Validator\Constraints\Emailconstraint with'mode' => 'strict', a helpful error message is shown when the necessary package is not installed.However, when configuring
strictmode as a framework setting (https://symfony.com/doc/current/reference/configuration/framework.html#email-validation-mode) and omitting themodesetting on the constraint itself, that message was missing.