Fixed incorrect parsing of return types for generics and closures

This commit is contained in:
武田 憲太郎
2024-10-20 09:02:42 +09:00
parent bba116ba9d
commit 836d531676
2 changed files with 22 additions and 2 deletions
@@ -80,10 +80,12 @@ class MethodTag extends ReturnTag
(?:[\w\|_\\\\]*\$this[\w\|_\\\\]*)
|
(?:
(?:[\w\|_\\\\]+)
(?:[\w\|_\\\\]+(?:<[\s\S]*>)?)
# array notation
(?:\[\])*
)*
|
(?:\([\s\S]*\))?
)
\s+
)?