Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/like-handler-factory' into like-…
Browse files Browse the repository at this point in the history
…handler-factory
  • Loading branch information
arogachev committed Oct 3, 2024
2 parents 17e36e3 + 0fa9bf7 commit a04b0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Reader/FilterHandler/LikeHandler/PostgresLikeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public function getAsWhereArguments(FilterInterface $filter, array $handlers): a
}

if ($filter->isCaseSensitive() !== true) {
return [$filter->getField(), 'ilike', '%'. $filter->getValue() . '%'];
return [$filter->getField(), 'ilike', '%' . $filter->getValue() . '%'];
}

return [$filter->getField(), 'like', '%'. $filter->getValue() . '%'];
return [$filter->getField(), 'like', '%' . $filter->getValue() . '%'];
}
}

0 comments on commit a04b0c4

Please sign in to comment.