From ff9189e5e14e3cbe3dc1b87eba1cd09763cb52da Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 22 Jun 2024 08:52:04 +0200 Subject: [PATCH] Update RegexArrayShapeMatcher.php --- src/Type/Php/RegexArrayShapeMatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Type/Php/RegexArrayShapeMatcher.php b/src/Type/Php/RegexArrayShapeMatcher.php index 018dd82162e..fc520c1b595 100644 --- a/src/Type/Php/RegexArrayShapeMatcher.php +++ b/src/Type/Php/RegexArrayShapeMatcher.php @@ -194,7 +194,7 @@ private function countNonOptionalGroups(string $regex): ?int try { $ast = self::$parser->parse($regex); - } catch ( Exception) { // @phpstan-ignore catch.notThrowable + } catch ( Exception) { return null; }