|
@@ -28,10 +28,8 @@ final class Annotation
|
|
{
|
|
{
|
|
/**
|
|
/**
|
|
* Regex to match any types, shall be used with `x` modifier.
|
|
* Regex to match any types, shall be used with `x` modifier.
|
|
- *
|
|
|
|
- * @internal
|
|
|
|
*/
|
|
*/
|
|
- public const REGEX_TYPES = '
|
|
|
|
|
|
+ private const REGEX_TYPES = '
|
|
# <simple> is any non-array, non-generic, non-alternated type, eg `int` or `\Foo`
|
|
# <simple> is any non-array, non-generic, non-alternated type, eg `int` or `\Foo`
|
|
# <array> is array of <simple>, eg `int[]` or `\Foo[]`
|
|
# <array> is array of <simple>, eg `int[]` or `\Foo[]`
|
|
# <generic> is generic collection type, like `array<string, int>`, `Collection<Item>` and more complex like `Collection<int, \null|SubCollection<string>>`
|
|
# <generic> is generic collection type, like `array<string, int>`, `Collection<Item>` and more complex like `Collection<int, \null|SubCollection<string>>`
|