diff --git a/src/Forms/DateField.php b/src/Forms/DateField.php index adff7afb1..dd86aed6f 100644 --- a/src/Forms/DateField.php +++ b/src/Forms/DateField.php @@ -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; diff --git a/src/Forms/DatetimeField.php b/src/Forms/DatetimeField.php index aeda8cbcf..52b802dc3 100644 --- a/src/Forms/DatetimeField.php +++ b/src/Forms/DatetimeField.php @@ -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