From 3fd6fb3ea4568b15d02426d512898c1277c37fbe Mon Sep 17 00:00:00 2001 From: luanfreitasdev Date: Fri, 20 Oct 2023 12:00:37 -0300 Subject: [PATCH] fix gettype --- src/Components/Filters/Builders/DatePicker.php | 2 +- src/Components/Filters/Builders/DateTimePicker.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }