The PHP Tokenizer extension does interpret both, <CLASSNAME>::class and class <CLASSNAME> {... as the same parser Token T_CLASS (358).
This leads to issues when parsing structures as it seems to indicate a nested structure which is simply not possible.