Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
fabpot merged 1 commit intosymfony:4.4frommpdude:patch-5
Aug 5, 2022

Conversation

@mpdude
Copy link
Contributor

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets
LicenseMIT
Doc PR

When using theSymfony\Component\Validator\Constraints\Email constraint with'mode' => 'strict', a helpful error message is shown when the necessary package is not installed.

However, when configuringstrict mode as a framework setting (https://symfony.com/doc/current/reference/configuration/framework.html#email-validation-mode) and omitting themode setting on the constraint itself, that message was missing.

@xabbuh
Copy link
Member

What about also performing this check in the configuration itself?

@mpdude
Copy link
ContributorAuthor

That might throw the exception also when thestrict setting is only set in configuration, but never actually used. We might do it that way, but it would behave different from settingstrict as an option only... which is why I chose to do it that way here.

@xabbuh
Copy link
Member

Yeah, you are right. Probably it's better play safe here and not do that as a bugfix.

@fabpot
Copy link
Member

Thank you@mpdude.

@fabpotfabpot merged commitc944281 intosymfony:4.4Aug 5, 2022
@mpdudempdude deleted the patch-5 branchAugust 5, 2022 12:23
This was referencedAug 26, 2022
@fabpotfabpot mentioned this pull requestSep 30, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@mpdude@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp