The existing regexp for checking type hints and variable names of inline @var comments doesn't allow numbers:
^/\*\* @var [a-zA-Z_\\\\\[\]|]+ \$[a-zA-Z_]+ \*/$
PHP gives the following regexp for valid class names:
^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$
Here's my attempt at combining the two:
^/\*\* @var \\\\?[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff\\\\\[\]|]* \$[a-zA-Z0-9_]+ \*/$
Comments
Comment #2
psynaptic commentedComment #3
psynaptic commentedComment #4
klausiCommitted a fix, thanks for reporting!