Skip to content

Commit

Permalink
cast for consistency with similar method a few lines above
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Jan 14, 2025
1 parent 36127e6 commit 62e1968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ protected function filterTestNotLike($item, $like)

protected function filterTestLikeRegex($item, $pattern)
{
return preg_match("/{$pattern}/im", $item ?? '');
return preg_match("/{$pattern}/im", (string) $item);
}

protected function filterTestNotLikeRegex($item, $pattern)
Expand Down

0 comments on commit 62e1968

Please sign in to comment.