mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Allow typed arrays in @method annotation.
Since the type resolver has support for typed arrays,
I allowed the syntax for the @method annotation.
In effect you can now annotate magic methods like:
@method Object[] myMethod($arg1, $arg2)
@method int[] myOtherMethod()
This commit is contained in:
@@ -91,7 +91,11 @@ final class Method extends BaseTag implements Factory\StaticMethod
|
||||
)?
|
||||
# Return type
|
||||
(?:
|
||||
([\w\|_\\\\]+)
|
||||
(
|
||||
(?:[\w\|_\\\\]+)
|
||||
# array notation
|
||||
(?:\[\])*
|
||||
)?
|
||||
\s+
|
||||
)?
|
||||
# Legacy method name (not captured)
|
||||
|
||||
Reference in New Issue
Block a user