Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit0496d13

Browse files
committed
Merge remote-tracking branch 'upstream/5.1' into 5.1
* upstream/5.1: [Validator] Change the example to be consistent with the rest [Validator] Use single quotes for string [Validator] Use double quotes instead of single
2 parentsc3f38b1 +47b2b7f commit0496d13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎reference/constraints/AtLeastOneOf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ The following constraints ensure that:
141141
new Assert\Count(['min' => 3]),
142142
new Assert\All([
143143
'constraints' => [
144-
new Assert\GreaterThanOrEqual(['value' => 5]),
144+
new Assert\GreaterThanOrEqual(5),
145145
],
146146
]),
147147
],

‎reference/constraints/IsFalse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ method returns **false**:
9797
public static function loadValidatorMetadata(ClassMetadata $metadata)
9898
{
9999
$metadata->addGetterConstraint('stateInvalid', new Assert\IsFalse([
100-
'message' =>'You've entered an invalid state.',
100+
'message' =>"You've entered an invalid state.",
101101
]));
102102
}
103103
}

‎reference/constraints/Sequentially.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ You can validate each of these constraints sequentially to solve these issues:
120120
{
121121
$metadata->addPropertyConstraint('address', new Assert\Sequentially([
122122
new Assert\NotNull(),
123-
new Assert\Type("string"),
123+
new Assert\Type('string'),
124124
new Assert\Length(['min' => 10]),
125125
new Assert\Regex(self::ADDRESS_REGEX),
126126
new AcmeAssert\Geolocalizable(),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp