Skip to content

Commit

Permalink
minor #7082 Update metadata.rst (fberthereau)
Browse files Browse the repository at this point in the history
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #7082).

Discussion
----------

Update metadata.rst

True does not exist

Commits
-------

c15a5d1 Update metadata.rst
  • Loading branch information
xabbuh committed Oct 26, 2016
2 parents 67deef2 + c15a5d1 commit 66970b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/validator/metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Then, add the Validator component configuration to the class::
{
public static function loadValidatorMetadata(ClassMetadata $metadata)
{
$metadata->addGetterConstraint('passwordSafe', new Assert\True(array(
$metadata->addGetterConstraint('passwordSafe', new Assert\IsTrue(array(
'message' => 'The password cannot match your first name',
)));
}
Expand Down

0 comments on commit 66970b0

Please sign in to comment.