From d3afa0c3b5211db2b70afc55c3961ba0174e4559 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 27 Apr 2017 10:59:44 +1200 Subject: [PATCH] Remove array check since setSubmittedValue() no longer supports it --- src/Forms/DateField.php | 4 ---- src/Forms/DatetimeField.php | 3 --- 2 files changed, 7 deletions(-) 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