Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit d750f73

Browse files
committed
chore: small ocd
1 parent 5c2a8eb commit d750f73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Rule/Choice.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ public function __construct(
2323
$resolver->setDefaults([
2424
'message' => 'The "{{ name }}" value is not a valid choice, "{{ value }}" given. Accepted values are: "{{ constraints }}".',
2525
'multipleMessage' => 'The "{{ name }}" value has one or more invalid choices, "{{ value }}" given. Accepted values are: "{{ constraints }}".',
26-
'maxMessage' => 'The "{{ name }}" value must have at most {{ maxConstraint }} choices, {{ numValues }} choices given.',
27-
'minMessage' => 'The "{{ name }}" value must have at least {{ minConstraint }} choices, {{ numValues }} choices given.'
26+
'minMessage' => 'The "{{ name }}" value must have at least {{ minConstraint }} choices, {{ numValues }} choices given.',
27+
'maxMessage' => 'The "{{ name }}" value must have at most {{ maxConstraint }} choices, {{ numValues }} choices given.'
2828
]);
2929

3030
$resolver->setAllowedTypes('message', 'string');
3131
$resolver->setAllowedTypes('multipleMessage', 'string');
32-
$resolver->setAllowedTypes('maxMessage', 'string');
3332
$resolver->setAllowedTypes('minMessage', 'string');
33+
$resolver->setAllowedTypes('maxMessage', 'string');
3434

3535
$this->options = $resolver->resolve($options);
3636
}

0 commit comments

Comments
 (0)