@@ -42,9 +42,6 @@ Validator::choice(['red', 'green', 'blue'], multiple: true, min: 2, max: 3)->val
42
42
> [ !NOTE]
43
43
> An ` UnexpectedValueException ` will be thrown when ` multiple ` is ` true ` and the input value is not an ` array ` .
44
44
45
- > [ !NOTE]
46
- > An ` UnexpectedValueException ` will be thrown when the ` min ` value is greater than or equal to the ` max ` value.
47
-
48
45
## Options
49
46
50
47
### ` constraints `
@@ -78,7 +75,7 @@ For example, if `max` is 2, the input array must have at most 2 values.
78
75
79
76
### ` message `
80
77
81
- type: ` ?string ` default: ` The {{ name }} value is not a valid choice, {{ value }} given . Accepted values are: {{ constraints }}. `
78
+ type: ` ?string ` default: ` The {{ name }} value is not a valid choice. Accepted values are: {{ constraints }}. `
82
79
83
80
Message that will be shown if input value is not a valid choice.
84
81
@@ -92,7 +89,7 @@ The following parameters are available:
92
89
93
90
### ` multipleMessage `
94
91
95
- type: ` ?string ` default: ` The {{ name }} value has one or more invalid choices, {{ value }} given . Accepted values are: {{ constraints }}. `
92
+ type: ` ?string ` default: ` The {{ name }} value has one or more invalid choices. Accepted values are: {{ constraints }}. `
96
93
97
94
Message that will be shown when ` multiple ` is ` true ` and at least one of the input array values is not a valid choice.
98
95
@@ -106,7 +103,7 @@ The following parameters are available:
106
103
107
104
### ` minMessage `
108
105
109
- type: ` ?string ` default: ` The {{ name }} value must have at least {{ min }} choices, {{ numElements }} choices given . `
106
+ type: ` ?string ` default: ` The {{ name }} value must have at least {{ min }} choice(s) . `
110
107
111
108
Message that will be shown when ` multiple ` is ` true ` and input array has fewer values than the defined in ` min ` .
112
109
@@ -123,7 +120,7 @@ The following parameters are available:
123
120
124
121
### ` maxMessage `
125
122
126
- type: ` ?string ` default: ` The {{ name }} value must have at most {{ max }} choices, {{ numElements }} choices given . `
123
+ type: ` ?string ` default: ` The {{ name }} value must have at most {{ max }} choice(s) . `
127
124
128
125
Message that will be shown when ` multiple ` is ` true ` and input array has more values than the defined in ` max ` .
129
126
0 commit comments