diff --git a/src/Components/Filters/Builders/DatePicker.php b/src/Components/Filters/Builders/DatePicker.php index 65f24d54..33c690b6 100644 --- a/src/Components/Filters/Builders/DatePicker.php +++ b/src/Components/Filters/Builders/DatePicker.php @@ -10,7 +10,7 @@ class DatePicker extends BuilderBase { public function builder(EloquentBuilder|QueryBuilder $builder, string $field, int|array|string|null $values): void { - if (gettype($values) === 'string') { + if (gettype($values) !== 'array') { return; } diff --git a/src/Components/Filters/Builders/DateTimePicker.php b/src/Components/Filters/Builders/DateTimePicker.php index db8b38b1..2f33c7a2 100644 --- a/src/Components/Filters/Builders/DateTimePicker.php +++ b/src/Components/Filters/Builders/DateTimePicker.php @@ -10,7 +10,7 @@ class DateTimePicker extends BuilderBase { public function builder(EloquentBuilder|QueryBuilder $builder, string $field, int|array|string|null $values): void { - if (gettype($values) === 'string') { + if (gettype($values) !== 'array') { return; }