From 4087cb9cab319ae58caee03ccf60872f12a85107 Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Thu, 21 Sep 2023 06:01:56 +0300 Subject: [PATCH] Fix check --- src/Helper/BacktraceIgnoreMatcher.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Helper/BacktraceIgnoreMatcher.php b/src/Helper/BacktraceIgnoreMatcher.php index 9e7bd0c8..11f0f8c4 100644 --- a/src/Helper/BacktraceIgnoreMatcher.php +++ b/src/Helper/BacktraceIgnoreMatcher.php @@ -32,6 +32,9 @@ public static function isIgnoredByClass(array $backtrace, array $classes): bool public static function doesStringMatchPattern(string $string, array $patterns): bool { + if (empty($patterns)) { + return false; + } return (new CombinedRegexp($patterns))->matches($string); } }