Remove array check since setSubmittedValue() no longer supports it

This commit is contained in:
Ingo Schommer 2017-04-27 10:59:44 +12:00
parent 958736502a
commit d3afa0c3b5
2 changed files with 0 additions and 7 deletions

View File

@ -338,10 +338,6 @@ class DateField extends TextField
return $this;
}
if (is_array($value)) {
throw new InvalidArgumentException("Use setSubmittedValue to assign by array");
}
// Re-run through formatter to tidy up (e.g. remove time component)
$this->value = $this->tidyISO8601($value);
return $this;

View File

@ -349,9 +349,6 @@ class DatetimeField extends TextField
$this->value = null;
return $this;
}
if (is_array($value)) {
throw new InvalidArgumentException("Use setSubmittedValue to assign by array");
};
// Validate iso 8601 date
// If invalid, assign for later validation failure