Make regex for method more performant to avoid catastrophic backtracking

This commit is contained in:
Daniel Rotter
2020-02-12 07:28:49 +01:00
committed by Mike van Riel
parent 8727095d6b
commit 51b773933d
+1 -1
View File
@@ -117,7 +117,7 @@ final class Method extends BaseTag implements Factory\StaticMethod
(?:[\w\|_\\\\]+) (?:[\w\|_\\\\]+)
# array notation # array notation
(?:\[\])* (?:\[\])*
)* )*+
) )
\s+ \s+
)? )?