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 66970b0

Browse filesBrowse 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
Copy full SHA for 66970b0

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.