Skip to content

Commit 36127e6

Browse files
committed
Fix deprecation warning from regex operator
1 parent bcd529b commit 36127e6

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", $item ?? '');
703703
}
704704

705705
protected function filterTestNotLikeRegex($item, $pattern)

0 commit comments

Comments
 (0)