Skip to content

Commit c15a5d1

Browse files
fberthereauxabbuh
authored andcommitted
Update metadata.rst
1 parent 67deef2 commit c15a5d1

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)