From 51b773933d9bcb9aded670d35e1482c03638dd16 Mon Sep 17 00:00:00 2001 From: Daniel Rotter Date: Tue, 11 Feb 2020 09:13:09 +0100 Subject: [PATCH] Make regex for method more performant to avoid catastrophic backtracking --- src/DocBlock/Tags/Method.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DocBlock/Tags/Method.php b/src/DocBlock/Tags/Method.php index c7a00e4..30ff1c8 100644 --- a/src/DocBlock/Tags/Method.php +++ b/src/DocBlock/Tags/Method.php @@ -117,7 +117,7 @@ final class Method extends BaseTag implements Factory\StaticMethod (?:[\w\|_\\\\]+) # array notation (?:\[\])* - )* + )*+ ) \s+ )?