Return use statement insertions for constant autocompletion
Currently use statement insertions are only generated for classlikes. Constants can also be namespaced and should follow the same behavior, albeit with a use const
instead of a use
.
We should also test that this does not generate any problems with classlikes that carry the same name, as duplicate use statements are allowed in PHP, as long as their type/kind is different.
Edited by Gert