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] Added ConstraintViolation::getConstraint()#11657

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

@webmozart
Copy link
Contributor

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#5050
LicenseMIT
Doc PR-

This PR adds agetConstraint() method to theConstraintViolation in order to access the constraint causing the violation.

Related to#7276,#7273 and#9691.

Copy link
Member

Choose a reason for hiding this comment

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

Looking at theBC promise, this can must be documented in theUPGRADE-2.6.md file, mustn't it?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Good catch! Thanks.

Copy link
Member

Choose a reason for hiding this comment

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

and also in the Validator changelog

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Both updated.

@webmozart
Copy link
ContributorAuthor

ping @symfony/deciders

Copy link
Member

Choose a reason for hiding this comment

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

Missing "the" before constraint?

@stof
Copy link
Member

👍

Copy link
Contributor

Choose a reason for hiding this comment

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

cannot be null according to the constructor

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Fixed.

@romainneutron
Copy link
Contributor

I'm 👍 on this one, just address@Tobion comment

@Tobion
Copy link
Contributor

👍

@webmozartwebmozart merged commitce1d209 intosymfony:masterAug 19, 2014
webmozart added a commit that referenced this pull requestAug 19, 2014
… (webmozart)This PR was merged into the 2.6-dev branch.Discussion----------[Validator] Added ConstraintViolation::getConstraint()| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#5050| License       | MIT| Doc PR        | -This PR adds a `getConstraint()` method to the `ConstraintViolation` in order to access the constraint causing the violation.Related to#7276,#7273 and#9691.Commits-------ce1d209 [Validator] Added ConstraintViolation::getConstraint()
@webmozartwebmozart deleted the violation-get-constraint branchSeptember 11, 2014 13:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@webmozart@stof@romainneutron@Tobion@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp