Skip to content

Commit

Permalink
fix gettype
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed Oct 20, 2023
1 parent d30d015 commit 3fd6fb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Filters/Builders/DatePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Components/Filters/Builders/DateTimePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3fd6fb3

Please sign in to comment.