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] fix lazy property usage.#36627

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
xabbuh merged 1 commit intosymfony:3.4frombendavies:validator-fix-lazy-property
May 2, 2020
Merged

[Validator] fix lazy property usage.#36627

xabbuh merged 1 commit intosymfony:3.4frombendavies:validator-fix-lazy-property
May 2, 2020

Conversation

@bendavies
Copy link
Contributor

@bendaviesbendavies commentedApr 29, 2020
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#36343
LicenseMIT
Doc PR

This attempts to fix a large regression introduced in#36343, which broke recursing values returned fromgetter Constraints, because they are now wrapped in in aLazyProperty. TheLazyProperty needs to be evaluated because some checks are done on the type of$value, i.eis_array etc... invalidateGenericNode.

I'm concerned that the original PR didn't really add sufficient test coverage for the introduction ofLazyProperty, and I'm not 100% sure that I've caught all the cases where theinstanceof check are needed in this PR.

For the tests, I added the@dataProvider getConstraintMethods to every test that hit the problem area of code.

The only issue is that my fixed has broken the test introduced in#36343,testGroupedMethodConstraintValidateInSequence.

I think I need@HeahDude to help me work through this. Maybe there is a more simple solution, one that doesn't require doinginstanceof LazyPropery checks in multiple places, because this feels very brittle.
EDIT: fixed that test.

@bendaviesbendavies changed the title[Validator] fix lazy property[Validator] fix lazy property usage.Apr 29, 2020
@bendaviesbendavies changed the base branch frommaster to3.4April 29, 2020 20:42
@nicolas-grekasnicolas-grekas added this to the3.4 milestoneMay 1, 2020
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

(with one minor comment)

@xabbuh
Copy link
Member

Thank you@bendavies.

@xabbuhxabbuh merged commitaee10cd intosymfony:3.4May 2, 2020
This was referencedMay 31, 2020
@guilliamxavier
Copy link
Contributor

FTR: Refs#36245

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@xabbuhxabbuhxabbuh 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

@bendavies@xabbuh@guilliamxavier@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp