Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d07aa0

Browse files
minor #36033 [Validator][Range] Fix typos (przemyslaw-bogusz)
This PR was merged into the 4.4 branch. Discussion ---------- [Validator][Range] Fix typos | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT Commits ------- a08d519 [Validator][Range] Fix typos
2 parents d0b7445 + a08d519 commit 9d07aa0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Validator/Constraints/Range.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct($options = null)
6565
parent::__construct($options);
6666

6767
if (null === $this->min && null === $this->minPropertyPath && null === $this->max && null === $this->maxPropertyPath) {
68-
throw new MissingOptionsException(sprintf('Either option "min", "minPropertyPath", "max" or "maxPropertyPath" must be given for constraint %s', __CLASS__), ['min', 'max']);
68+
throw new MissingOptionsException(sprintf('Either option "min", "minPropertyPath", "max" or "maxPropertyPath" must be given for constraint %s', __CLASS__), ['min', 'minPropertyPath', 'max', 'maxPropertyPath']);
6969
}
7070
}
7171
}

src/Symfony/Component/Validator/Tests/Constraints/RangeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testThrowsConstraintExceptionIfBothMaxLimitAndPropertyPath()
2222
$this->expectException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
2323
$this->expectExceptionMessage('requires only one of the "max" or "maxPropertyPath" options to be set, not both.');
2424
new Range([
25-
'max' => 'min',
25+
'max' => 'max',
2626
'maxPropertyPath' => 'maxPropertyPath',
2727
]);
2828
}

0 commit comments

Comments
 (0)