Skip to content

Commit

Permalink
Merge pull request #32 from marcreichel/fix/builder
Browse files Browse the repository at this point in the history
Fix Builder
  • Loading branch information
marcreichel committed Apr 3, 2021
2 parents ff1f4b5 + bfdde46 commit 0a092f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public function where(
} elseif ($operator === 'not ilike' && is_string($value)) {
$this->whereNotLike($key, $value, false, $boolean);
} else {
$value = !is_numeric($value) ? json_encode($value) : $value;
$value = !is_int($value) ? json_encode($value) : $value;
$where->push(($where->count() ? $boolean . ' ' : '') . $key . ' ' . $operator . ' ' . $value);
$this->query->put('where', $where);
}
Expand Down

0 comments on commit 0a092f2

Please sign in to comment.