From c5a3a1dfbe8114425068ce9c4e988bb0f83e8b8e Mon Sep 17 00:00:00 2001 From: Joe <104938042+lrljoe@users.noreply.github.com> Date: Sun, 17 Nov 2024 06:20:07 +0000 Subject: [PATCH] Adjustment for DateRangeFilter (#2064) --- src/Views/Filters/DateRangeFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Views/Filters/DateRangeFilter.php b/src/Views/Filters/DateRangeFilter.php index 7fae05c82..084353559 100644 --- a/src/Views/Filters/DateRangeFilter.php +++ b/src/Views/Filters/DateRangeFilter.php @@ -28,7 +28,7 @@ public function getKeys(): array return ['minDate' => '', 'maxDate' => '']; } - public function validate(array|string $values): array|bool + public function validate(array|string|null $values): array|bool { $this->getOptions(); $this->getConfigs(); @@ -197,7 +197,7 @@ public function getFilterPillValue($value): array|string|bool|null return ''; } - public function isEmpty(array|string $value): bool + public function isEmpty(array|string|null $value): bool { $values = []; if (is_array($value)) {