Skip to content

Commit eddef14

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: Update Valid.rst
2 parents 1a1e9c6 + ab04fe8 commit eddef14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Valid.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ stores an ``Address`` instance in the ``$address`` property::
155155
{
156156
$metadata->addPropertyConstraint('street', new Assert\NotBlank());
157157
$metadata->addPropertyConstraint('zipCode', new Assert\NotBlank());
158-
$metadata->addPropertyConstraint('zipCode', new Assert\Length(["max" => 5]));
158+
$metadata->addPropertyConstraint('zipCode', new Assert\Length(['max' => 5]));
159159
}
160160
}
161161
@@ -170,7 +170,7 @@ stores an ``Address`` instance in the ``$address`` property::
170170
public static function loadValidatorMetadata(ClassMetadata $metadata)
171171
{
172172
$metadata->addPropertyConstraint('firstName', new Assert\NotBlank());
173-
$metadata->addPropertyConstraint('firstName', new Assert\Length(["min" => 4]));
173+
$metadata->addPropertyConstraint('firstName', new Assert\Length(['min' => 4]));
174174
$metadata->addPropertyConstraint('lastName', new Assert\NotBlank());
175175
}
176176
}

0 commit comments

Comments
 (0)