mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Correct exception message in constructor
This commit is contained in:
parent
fe04753be2
commit
a1114b8fcb
@ -161,7 +161,7 @@ class Form extends RequestHandler {
|
|||||||
throw new InvalidArgumentException('$fields must be a valid FieldList instance');
|
throw new InvalidArgumentException('$fields must be a valid FieldList instance');
|
||||||
}
|
}
|
||||||
if(!$actions instanceof FieldList) {
|
if(!$actions instanceof FieldList) {
|
||||||
throw new InvalidArgumentException('$fields must be a valid FieldList instance');
|
throw new InvalidArgumentException('$actions must be a valid FieldList instance');
|
||||||
}
|
}
|
||||||
if($validator && !$validator instanceof Validator) {
|
if($validator && !$validator instanceof Validator) {
|
||||||
throw new InvalidArgumentException('$validator must be a Valdidator instance');
|
throw new InvalidArgumentException('$validator must be a Valdidator instance');
|
||||||
|
Loading…
Reference in New Issue
Block a user