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 eddef14

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

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.