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; }