Skip to content

[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

Merged
merged 1 commit into from
Feb 19, 2017
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Dec 31, 2016

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

@xabbuh
Copy link
Member Author

xabbuh commented Jan 2, 2017

Actually, I think that changes made to the XMLFileLoader and the YamlFileLoader should be moved into a different PR targeting master as a new feature.

*
* @return $this
*/
public function addGetterConstraint($property, Constraint $constraint)
public function addGetterConstraint($property, Constraint $constraint, $method = null)
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member Author

xabbuh commented Jan 7, 2017

I also reverted the changes to the YamlFileLoader and XmlFileLoader as they are not needed to fix the issue reported in #18700 and qualify as new features instead.

Status: Needs Review

@xabbuh
Copy link
Member Author

xabbuh commented Jan 27, 2017

ping @symfony/deciders

@fabpot
Copy link
Member

fabpot commented Feb 19, 2017

Thank you @xabbuh.

@fabpot fabpot merged commit bd3a90a into symfony:2.7 Feb 19, 2017
fabpot added a commit that referenced this pull request Feb 19, 2017
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
@xabbuh xabbuh deleted the issue-18700 branch February 20, 2017 06:41
This was referenced Mar 6, 2017
* @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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong PHPDoc.

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch, see #21993

nicolas-grekas added a commit that referenced this pull request Mar 14, 2017
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants