Skip to content

PHP sample had a mistake #7281

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

Closed
wants to merge 1 commit into from
Closed

PHP sample had a mistake #7281

wants to merge 1 commit into from

Conversation

manoakys
Copy link
Contributor

was $metadata->addPropertyConstraint('age', new Assert\NotEqualTo('Mary'));
should be $metadata->addPropertyConstraint('firstName', new Assert\NotEqualTo('Mary'));

was $metadata->addPropertyConstraint('age', new Assert\NotEqualTo('Mary'));
should be $metadata->addPropertyConstraint('firstName', new Assert\NotEqualTo('Mary'));
Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

👍 Good catch! Thanks @manoakys.

@xabbuh
Copy link
Member

xabbuh commented Dec 25, 2016

Good catch, thanks @manoakys.

xabbuh added a commit that referenced this pull request Dec 25, 2016
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes #7281).

Discussion
----------

PHP sample had a mistake

was $metadata->addPropertyConstraint('age', new Assert\NotEqualTo('Mary'));
should be $metadata->addPropertyConstraint('firstName', new Assert\NotEqualTo('Mary'));

Commits
-------

6781134 PHP sample had mistake
@xabbuh xabbuh closed this Dec 25, 2016
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.

4 participants