Skip to content

Commit 70b66fa

Browse files
SebLoursxabbuh
authored andcommitted
Update Choice.rst
Fixed city choice (php code block).
1 parent 4defc48 commit 70b66fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/Choice.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ If your valid choice list is simple, you can pass them in directly via the
111111
public static function loadValidatorMetadata(ClassMetadata $metadata)
112112
{
113113
$metadata->addPropertyConstraint(
114-
'gender',
114+
'city',
115115
new Assert\Choice(array('New York', 'Berlin', 'Tokyo'))
116116
);
117117

0 commit comments

Comments
 (0)