Skip to content

Commit

Permalink
[5.x] Fix deprecation warning from regex operator (#11337)
Browse files Browse the repository at this point in the history
* Fix deprecation warning from regex operator

* cast for consistency with similar method a few lines above

---------

Co-authored-by: Jason Varga <[email protected]>
  • Loading branch information
duncanmcclean and jasonvarga authored Jan 21, 2025
1 parent 670e172 commit b29a823
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 b29a823

Please sign in to comment.