8000 minor #7134 Update Choice.rst (SebLours) · symfony/symfony-docs@607d3c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 607d3c8

Browse files
committed
minor #7134 Update Choice.rst (SebLours)
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #7134). Discussion ---------- Update Choice.rst Fixed city choice (php code block). Commits ------- 70b66fa Update Choice.rst
2 parents 4defc48 + 70b66fa commit 607d3c8

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)
0