Skip to content

Commit 0496d13

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 parents c3f38b1 + 47b2b7f commit 0496d13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

reference/constraints/AtLeastOneOf.rst

+1-1
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

+1-1
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

+1-1
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)