8000 [Validator][Range] Fix typos · simPod/symfony@a08d519 · GitHub
[go: up one dir, main page]

Skip to content

Commit a08d519

Browse files
[Validator][Range] Fix typos
1 parent d0b7445 commit a08d519

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)
0