File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -62,19 +62,11 @@ public function conformsToDefinition(mixed $value)
62
62
return true ;
63
63
}
64
64
65
- ///TODO: check whether this works (test the internal exception as well)
66
- // apply validators
67
- // if an unexpected error is thrown, it is likely that the validator does not conform to the validator
68
- // interface
69
- try {
70
- // use every provided validator
71
- foreach ($ this ->validators as $ validator ) {
72
- if (!$ validator ->validate ($ value )) {
73
- throw new InvalidArgumentException ($ this ->name );
74
- }
65
+ // use every provided validator
66
+ foreach ($ this ->validators as $ validator ) {
67
+ if (!$ validator ->validate ($ value )) {
68
+ throw new InvalidArgumentException ($ this ->name );
75
69
}
76
- } catch (InternalServerException $ e ) {
77
- throw $ e ;
78
70
}
79
71
80
72
return true ;
You can’t perform that action at this time.
0 commit comments