How to get the object info from variable?
已回答
Some time ago I made this plugin https://plugins.jetbrains.com/plugin/12590-php-code-generator-/
(https://github.com/KristijanKanalas/PHPCodeGeneratorPlus). And I went the round about way of getting the information about a variable. Particularly I am not sure how to correctly get the name of the class the variable was instantiated as. I can't seem to find much about this topic on the official docs. Does anyone know how to do this?
请先登录再写评论。
Hello. Please try com.jetbrains.php.lang.psi.elements.impl.VariableImpl#getType