@@ -38,6 +38,8 @@ public function validate($value, Constraint $constraint)
38
38
->setParameter ('{{ value }} ' , $ this ->formatValue ($ value ))
39
39
->setCode (Bic::INVALID_LENGTH_ERROR )
40
40
->addViolation ();
41
+
42
+ return ;
41
43
}
42
44
43
45
// must contain alphanumeric values only
@@ -46,6 +48,8 @@ public function validate($value, Constraint $constraint)
46
48
->setParameter ('{{ value }} ' , $ this ->formatValue ($ value ))
47
49
->setCode (Bic::INVALID_CHARACTERS_ERROR )
48
50
->addViolation ();
51
+
52
+ return ;
49
53
}
50
54
51
55
// first 4 letters must be alphabetic (bank code)
@@ -54,6 +58,8 @@ public function validate($value, Constraint $constraint)
54
58
->setParameter ('{{ value }} ' , $ this ->formatValue ($ value ))
55
59
->setCode (Bic::INVALID_BANK_CODE_ERROR )
56
60
->addViolation ();
61
+
62
+ return ;
57
63
}
58
64
59
65
// next 2 letters must be alphabetic (country code)
@@ -62,6 +68,8 @@ public function validate($value, Constraint $constraint)
62
68
->setParameter ('{{ value }} ' , $ this ->formatValue ($ value ))
63
69
->setCode (Bic::INVALID_COUNTRY_CODE_ERROR )
64
70
->addViolation ();
71
+
72
+ return ;
65
73
}
66
74
67
75
// should contain uppercase characters only
@@ -70,6 +78,8 @@ public function validate($value, Constraint $constraint)
70
78
->setParameter ('{{ value }} ' , $ this ->formatValue ($ value ))
71
79
->setCode (Bic::INVALID_CASE_ERROR )
72
80
->addViolation ();
81
+
82
+ return ;
73
83
}
74
84
}
75
85
}
0 commit comments