Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Validator] do not guess getter method names#21115
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
xabbuh commentedJan 2, 2017
Actually, I think that changes made to the |
| * @return $this | ||
| */ | ||
| publicfunctionaddGetterConstraint($property,Constraint$constraint) | ||
| publicfunctionaddGetterConstraint($property,Constraint$constraint,$method =null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Isn't this a BC break?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
You are right. I have added new methods instead.
xabbuh commentedJan 7, 2017
I also reverted the changes to the Status: Needs Review |
xabbuh commentedJan 27, 2017
ping @symfony/deciders |
fabpot commentedFeb 19, 2017
Thank you@xabbuh. |
This PR was merged into the 2.7 branch.Discussion----------[Validator] do not guess getter method names| Q | A| ------------- | ---| Branch? | 2.7| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#5219,#18700| License | MIT| Doc PR | TODOCommits-------bd3a90a [Validator] do not guess getter method names
| * @param Constraint $constraint The constraint | ||
| * @param string $property The name of the property | ||
| * @param Constraint $constraint The constraint | ||
| * @param string|null $method The method that is called to retrieve the value being validated (null for auto-detection) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Wrong PHPDoc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
good catch, see#21993
This PR was merged into the 2.7 branch.Discussion----------[Validator] revert wrong Phpdoc change| Q | A| ------------- | ---| Branch? | 2.7| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#21115 (comment)| License | MIT| Doc PR |Commits-------86e8afa [Validator] revert wrong Phpdoc change
Uh oh!
There was an error while loading.Please reload this page.