You don't need to add a dollar sign when concatenating the class and variable names, this will only lead to output like parent_class::$$variable. The dollar sign for properties is already in the structure.xml
Remove duplicate dollar sign for inherited variables
You don't need to add a dollar sign when concatenating the class and variable names, this will only lead to output like `parent_class::$$variable`. The dollar sign for properties is already in the structure.xml
Looking good! Have you tested it with several templates or just responsive?
Just with responsive, but could choice of template even make a difference here? I thought that structure.xml was the same for all templates and that behaviors are configured separately. I might be wrong though, I haven't really looked that deeply into phpdoc's architecture :-)
The structure file is the same; I just don't know if the other templates do not prepend a dollar sign. This would effectively delete it for them.
I am all for the change; just not sure whether it will carry well without testing (and I am running short in time :()
AFAICT the template does not even have the possibility to use only half the string (if it did, I would have fixed the problem in my template instead of going through the hassle of opening a pull request :-)). The value from getReferrerString is written into refers (https://github.com/phpDocumentor/phpDocumentor2/blob/develop/src/phpDocumentor/Plugin/Core/Transformer/Behaviour/Inherit/Node/PropertyNode.php#L91) and description (https://github.com/phpDocumentor/phpDocumentor2/blob/develop/src/phpDocumentor/Plugin/Core/Transformer/Behaviour/Inherit/Node/PropertyNode.php#L95) attributes and is f.x. used here: https://github.com/phpDocumentor/template.responsive/blob/master/elements/common.xsl#L157. The only way for a template to use only the variable name would be by doing a regex on the attribute value, at which point the dollar sign problem will already be addressed by the regex itself.
Thanks for looking that up for me, it gives me the confidence to merge this without testing it locally; merging now :)