Skip to content

Commit b3b39b0

Browse files
committed
small constraint improvements
1 parent 3f5a2bb commit b3b39b0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

reference/constraints/Json.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The ``Json`` constraint can be applied to a property or a "getter" method:
3535
* message = "You've entered an invalid Json."
3636
* )
3737
*/
38-
private $chapters;
38+
private $chapters;
3939
}
4040
4141
.. code-block:: yaml
@@ -74,8 +74,6 @@ The ``Json`` constraint can be applied to a property or a "getter" method:
7474
7575
class Book
7676
{
77-
private $chapters;
78-
7977
public static function loadValidatorMetadata(ClassMetadata $metadata)
8078
{
8179
$metadata->addPropertyConstraint('chapters', new Assert\Json([

reference/constraints/Timezone.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ string meant to contain a timezone identifier (e.g. ``America/New_York``):
7474
7575
class UserSettings
7676
{
77-
protected $timezone;
78-
7977
public static function loadValidatorMetadata(ClassMetadata $metadata)
8078
{
8179
$metadata->addPropertyConstraint('timezone', new Assert\Timezone());

0 commit comments

Comments
 (0)