diff --git a/src/Query/Builder.php b/src/Query/Builder.php index e9bd131737..8098ee9740 100644 --- a/src/Query/Builder.php +++ b/src/Query/Builder.php @@ -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)