8000 Minor fixes · symfony/symfony-docs@d564218 · GitHub
[go: up one dir, main page]

Skip to content

Commit d564218

Browse files
Minor fixes
1 parent ac6282f commit d564218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Timezone.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Basic Usage
1616
-----------
1717

1818
Suppose you have a ``UserSettings`` class, with a ``timezone`` field that is a
19-
string meant to contain a timezone identifier (ie. ``America/New_York``):
19+
string meant to contain a timezone identifier (e.g. ``America/New_York``):
2020

2121
.. configuration-block::
2222

@@ -72,7 +72,7 @@ string meant to contain a timezone identifier (ie. ``America/New_York``):
7272
7373
public static function loadValidatorMetadata(ClassMetadata $metadata)
7474
{
75-
$metadata->addPropertyConstraint('startsAt', new Assert\Timezone());
75+
$metadata->addPropertyConstraint('timezone', new Assert\Timezone());
7676
}
7777
}
7878

0 commit comments

Comments
 (0)
0