Skip to content

Commit 51b7739

Browse files
danrotmvriel
authored andcommitted
Make regex for method more performant to avoid catastrophic backtracking
1 parent 8727095 commit 51b7739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocBlock/Tags/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static function create(
117117
(?:[\w\|_\\\\]+)
118118
# array notation
119119
(?:\[\])*
120-
)*
120+
)*+
121121
)
122122
\s+
123123
)?

0 commit comments

Comments
 (0)