-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
xabbuh
commented
Dec 31, 2016
•
edited
Loading
edited
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 | TODO |
Actually, I think that changes made to the |
* | ||
* @return $this | ||
*/ | ||
public function addGetterConstraint($property, Constraint $constraint) | ||
public function addGetterConstraint($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.
I also reverted the changes to the Status: Needs Review |
ping @symfony/deciders |
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 | TODO Commits ------- 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