This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ public function choice(
32
32
string $ maxMessage = 'The "{{ name }}" value must have at most {{ maxConstraint }} choices, {{ numValues }} choices given. '
33
33
): ChainedValidatorInterface ;
34
34
35
+ public function country (
36
+ string $ code = 'alpha-2 ' ,
37
+ string $ message = 'The "{{ name }}" value is not a valid country code, "{{ value }}" given. '
38
+ ): ChainedValidatorInterface ;
39
+
35
40
public function greaterThan (
36
41
mixed $ constraint ,
37
42
string $ message = 'The "{{ name }}" value should be greater than "{{ constraint }}", "{{ value }}" given. '
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ public static function choice(
22
22
string $ maxMessage = 'The "{{ name }}" value must have at most {{ maxConstraint }} choices, {{ numValues }} choices given. '
23
23
): ChainedValidatorInterface ;
24
24
25
+ public static function country (
26
+ string $ code = 'alpha-2 ' ,
27
+ string $ message = 'The "{{ name }}" value is not a valid country code, "{{ value }}" given. '
28
+ ): ChainedValidatorInterface ;
29
+
25
30
public static function greaterThan (
26
31
mixed $ constraint ,
27
32
string $ message = 'The "{{ name }}" value should be greater than "{{ constraint }}", "{{ value }}" given. '
You can’t perform that action at this time.
0 commit comments