From 62e1968ebea022f72b2f8d20fcbe4aac68e1e78a Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Tue, 14 Jan 2025 11:13:10 -0500 Subject: [PATCH] cast for consistency with similar method a few lines above --- src/Query/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Query/Builder.php b/src/Query/Builder.php index ee99eb1e31..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)