InvalidTag name with leading @
Author: kkmuffmeCreated Mar 15, 2026Updated Mar 15, 2026
For InvalidTag the getName() method sometimes returns the tag name including the @ - this is only happens for some cases and also only for InvalidTag.
When testing a tool on an lib, I got that for:
$foo = 'bar'; /** @var $self SomeClass */Source: phpDocumentor/ReflectionDocBlock