8000 minor #7082 Update metadata.rst (fberthereau) · symfony/symfony-docs@66970b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 66970b0

Browse files
committed
minor #7082 Update metadata.rst (fberthereau)
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
2 parents 67deef2 + c15a5d1 commit 66970b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/validator/metadata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Then, add the Validator component configuration to the class::
5858
{
5959
public static function loadValidatorMetadata(ClassMetadata $metadata)
6060
{
61-
$metadata->addGetterConstraint('passwordSafe', new Assert\True(array(
61+
$metadata->addGetterConstraint('passwordSafe', new Assert\IsTrue(array(
6262
'message' => 'The password cannot match your first name',
6363
)));
6464
}

0 commit comments

Comments
 (0)
0