Since `array` is not a class, it doesn't make sense to resolve its type.
What's the use-case for such pseudo-constant in your code?

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On Mon, Oct 1, 2018 at 1:30 AM Marcos Passos <marcospassos....@gmail.com>
wrote:

> Currently, class name resolution supports all types except an array.
> https://3v4l.org/OXFMW
>
> In fact, it is syntactically invalid since the parser fails to recognize
> `array::class` as an array expression:
>
> Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting
> > identifier (T_STRING)
> > https://3v4l.org/5IOoI
>
>
> Is possible to change the grammar to support array also?
>
> - Marcos
>

Reply via email to