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] deprecate the loose e-mail validation mode#46518

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:6.2fromxabbuh:issue-41855
Jun 2, 2022

Conversation

@xabbuh
Copy link
Member

QA
Branch?6.2
Bug fix?no
New feature?no
Deprecations?yes
TicketsFix#41855
LicenseMIT
Doc PR

@fabpot
Copy link
Member

Thank you@xabbuh.

Copy link

@ghostghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@xabbuh i know the code is already merged but maybe you can have a look at my comments?

$this->normalizer =$normalizer ??$this->normalizer;

if (self::VALIDATION_MODE_LOOSE ===$this->mode) {
trigger_deprecation('symfony/validator','6.2','The "%s" mode is deprecated. The default mode will be changed to "%s" in 7.0.',self::VALIDATION_MODE_LOOSE,self::VALIDATION_MODE_HTML5);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Will the default be changed or will the validation mode be removed?

publicconstVALIDATION_MODE_HTML5 ='html5';
publicconstVALIDATION_MODE_STRICT ='strict';
/**
* @deprecated since Symfony 6.2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@deprecated since Symfony 6.2, use VALIDATION_MODE_HTML5 instead?

@xabbuh
Copy link
MemberAuthor

@johanadivare sorry for the late feedback, please see#49420

fabpot added a commit that referenced this pull requestFeb 20, 2023
This PR was merged into the 6.2 branch.Discussion----------improve deprecation message| Q             | A| ------------- | ---| Branch?       | 6.2| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       |#46518 (comment) and#46518 (comment)| License       | MIT| Doc PR        |Commits-------54a1d1b improve deprecation message
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@stofstofstof approved these changes

+1 more reviewer
Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

[Validator] Change default mode ofAssert\Email to "strict", for consistency with Mailer

5 participants

@xabbuh@fabpot@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp