Skip to content

Commit

Permalink
Merge pull request #18 from wildwalks/patch-1
Browse files Browse the repository at this point in the history
Update "in" operator
  • Loading branch information
roberto-butti authored Oct 11, 2024
2 parents 1d35246 + 75b0506 commit d0448c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/QueryableBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public function where(
'<=' => $elementToCheck->get($field) <= $value,
'!=' => $elementToCheck->get($field) != $value,
'!==' => $elementToCheck->get($field) !== $value,
'like' => self::like($elementToCheck->get($field), $value),
'in' => in_array($value, $elementToCheck->get($field)),
'has' => in_array($elementToCheck->get($field), $value),
default => $elementToCheck->get($field) === $value,
};
if ($found) {
Expand Down

0 comments on commit d0448c1

Please sign in to comment.