File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ stores an ``Address`` instance in the ``$address`` property::
155
155
{
156
156
$metadata->addPropertyConstraint('street', new Assert\NotBlank());
157
157
$metadata->addPropertyConstraint('zipCode', new Assert\NotBlank());
158
- $metadata->addPropertyConstraint('zipCode', new Assert\Length([" max" => 5]));
158
+ $metadata->addPropertyConstraint('zipCode', new Assert\Length([' max' => 5]));
159
159
}
160
160
}
161
161
@@ -170,7 +170,7 @@ stores an ``Address`` instance in the ``$address`` property::
170
170
public static function loadValidatorMetadata(ClassMetadata $metadata)
171
171
{
172
172
$metadata->addPropertyConstraint('firstName', new Assert\NotBlank());
173
- $metadata->addPropertyConstraint('firstName', new Assert\Length([" min" => 4]));
173
+ $metadata->addPropertyConstraint('firstName', new Assert\Length([' min' => 4]));
174
174
$metadata->addPropertyConstraint('lastName', new Assert\NotBlank());
175
175
}
176
176
}
You can’t perform that action at this time.
0 commit comments