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

DateTime validator support for trailing data#37097

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

Conversation

@stefankleff
Copy link

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#37094
LicenseMIT

->setParameter('{{ value }}',$this->formatValue($value))
->setCode(DateTime::INVALID_TIME_ERROR)
->addViolation();
}elseif ('Trailing data' ===$warning &&'+' ===substr($constraint->format, -1)) {
Copy link
Member

@xabbuhxabbuhJun 4, 2020
edited
Loading

Choose a reason for hiding this comment

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

Could there be cases with more than one warning where we don't want to ignore the other ones?

Choose a reason for hiding this comment

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

@stefankleff any idea? Could you please have a look?

Copy link
Member

Choose a reason for hiding this comment

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

@stefankleff Have you time to have a look at this?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, not yet. But I'll try within this week.

xabbuh reacted with thumbs up emoji

Choose a reason for hiding this comment

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

friendly ping

Copy link
Author

Choose a reason for hiding this comment

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

The case is valid, that we have a "+" in the format and we don't want to ignore the other warnings.
I couldn't find a better way than remove the warning from the list of warnings.
I also looked in the underlying c-code and I couldn't find any similar cases to trailing data.

@nicolas-grekasnicolas-grekas added this to the3.4 milestoneJun 4, 2020
@fabpotfabpotforce-pushed thedatetime-validator-trailing-data branch fromf3b8721 to27f6e28CompareSeptember 9, 2020 05:34
@fabpot
Copy link
Member

Thank you@stefankleff.

@fabpotfabpot merged commit1e52146 intosymfony:3.4Sep 9, 2020
This was referencedSep 27, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@xabbuhxabbuhxabbuh left review comments

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@stefankleff@fabpot@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp