Skip to content

Commit

Permalink
Fixed argument position for str_contains
Browse files Browse the repository at this point in the history
  • Loading branch information
kisztof committed Dec 1, 2023
1 parent afcaa0a commit 0173a63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function tokenizeString($string)
*/
protected function getWordExpression(QueryBuilder $query, string $token): string
{
if ($this->configuration['enableWildcards'] && str_contains('*', $token)) {
if ($this->configuration['enableWildcards'] && str_contains($token, '*')) {
$hasLeadingWildcard = str_starts_with($token, '*');
$hasTrailingWildcard = str_ends_with($token, '*');

Expand Down

0 comments on commit 0173a63

Please sign in to comment.