Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ab04fe8

Browse filesBrowse 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
Copy full SHA for ab04fe8

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎reference/constraints/Valid.rst

Copy file name to clipboardExpand all lines: reference/constraints/Valid.rst
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.