Skip to content

Commit b29a823

Browse files
[5.x] Fix deprecation warning from regex operator (#11337)
* Fix deprecation warning from regex operator * cast for consistency with similar method a few lines above --------- Co-authored-by: Jason Varga <[email protected]>
1 parent 670e172 commit b29a823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ protected function filterTestNotLike($item, $like)
699699

700700
protected function filterTestLikeRegex($item, $pattern)
701701
{
702-
return preg_match("/{$pattern}/im", $item);
702+
return preg_match("/{$pattern}/im", (string) $item);
703703
}
704704

705705
protected function filterTestNotLikeRegex($item, $pattern)

0 commit comments

Comments
 (0)