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 @@ -157,7 +157,7 @@ stores an ``Address`` instance in the ``$address`` property::
157
157
{
158
158
$metadata->addPropertyConstraint('street', new Assert\NotBlank());
159
159
$metadata->addPropertyConstraint('zipCode', new Assert\NotBlank());
160
- $metadata->addPropertyConstraint('zipCode', new Assert\Length([" max" => 5]));
160
+ $metadata->addPropertyConstraint('zipCode', new Assert\Length([' max' => 5]));
161
161
}
162
162
}
163
163
@@ -172,7 +172,7 @@ stores an ``Address`` instance in the ``$address`` property::
172
172
public static function loadValidatorMetadata(ClassMetadata $metadata)
173
173
{
174
174
$metadata->addPropertyConstraint('firstName', new Assert\NotBlank());
175
- $metadata->addPropertyConstraint('firstName', new Assert\Length([" min" => 4]));
175
+ $metadata->addPropertyConstraint('firstName', new Assert\Length([' min' => 4]));
176
176
$metadata->addPropertyConstraint('lastName', new Assert\NotBlank());
177
177
}
178
178
}
You can’t perform that action at this time.
0 commit comments