Skip to content

Commit ab04fe8

Browse files
committed
minor #12858 Update Valid.rst (artyuum)
This PR was submitted for the 5.0 branch but it was merged into the 3.4 branch instead (closes #12858). Discussion ---------- Update Valid.rst Changed few double-quotes to single-quotes for code consistency <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 992f0d8 Update Valid.rst
2 parents 732b58c + 992f0d8 commit ab04fe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Valid.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ stores an ``Address`` instance in the ``$address`` property::
157157
{
158158
$metadata->addPropertyConstraint('street', new Assert\NotBlank());
159159
$metadata->addPropertyConstraint('zipCode', new Assert\NotBlank());
160-
$metadata->addPropertyConstraint('zipCode', new Assert\Length(["max" => 5]));
160+
$metadata->addPropertyConstraint('zipCode', new Assert\Length(['max' => 5]));
161161
}
162162
}
163163
@@ -172,7 +172,7 @@ stores an ``Address`` instance in the ``$address`` property::
172172
public static function loadValidatorMetadata(ClassMetadata $metadata)
173173
{
174174
$metadata->addPropertyConstraint('firstName', new Assert\NotBlank());
175-
$metadata->addPropertyConstraint('firstName', new Assert\Length(["min" => 4]));
175+
$metadata->addPropertyConstraint('firstName', new Assert\Length(['min' => 4]));
176176
$metadata->addPropertyConstraint('lastName', new Assert\NotBlank());
177177
}
178178
}

0 commit comments

Comments
 (0)