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] ensure the proper context for nested validations#20664

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:2.7fromxabbuh:issue-14786
Nov 29, 2016

Conversation

@xabbuh
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#14639,#20368
LicenseMIT
Doc PRn/a

@HeahDude
Copy link
Contributor

A necessary feature since 2.7 is LTS and this bug's really tricky
👍

$previousGroup =$this->context->getGroup();
$previousConstraint =null;

if ($this->contextinstanceof ExecutionContext ||method_exists($this->context,'getConstraint')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not justif (method_exists($this->context, 'getConstraint')) ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I did not test it, but theinstanceof check should be faster and should be true most of the time.

@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commit56c8ff8 intosymfony:2.7Nov 29, 2016
fabpot added a commit that referenced this pull requestNov 29, 2016
…ns (xabbuh)This PR was merged into the 2.7 branch.Discussion----------[Validator] ensure the proper context for nested validations| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#14639,#20368| License       | MIT| Doc PR        | n/aCommits-------56c8ff8 ensure the proper context for nested validations
@xabbuhxabbuh deleted the issue-14786 branchNovember 29, 2016 08:24
@fabpotfabpot mentioned this pull requestNov 30, 2016
This was referencedDec 13, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@ogizanagiogizanagiogizanagi left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@xabbuh@HeahDude@fabpot@ogizanagi

[8]ページ先頭

©2009-2025 Movatter.jp