Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c15a5d1

Browse filesBrowse files
fberthereauxabbuh
authored andcommitted
Update metadata.rst
1 parent 67deef2 commit c15a5d1
Copy full SHA for c15a5d1

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎components/validator/metadata.rst

Copy file name to clipboardExpand all lines: components/validator/metadata.rst
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.