Merge pull request #2 from JeppeKnockaert/add-brackets-for-parsing-return-types

feature - Improve method tag parsing
This commit is contained in:
Barry vd. Heuvel
2018-12-13 11:34:14 +01:00
committed by GitHub
@@ -76,7 +76,15 @@ class MethodTag extends ReturnTag
)?
# Return type
(?:
([\w\|_\\\\]+)
(
(?:[\w\|_\\\\]*\$this[\w\|_\\\\]*)
|
(?:
(?:[\w\|_\\\\]+)
# array notation
(?:\[\])*
)*
)
\s+
)?
# Legacy method name (not captured)