HvyIndustries / crane

PHP Intellisense/code-completion for VS Code
https://hvy.io/crane
Other
240 stars 25 forks source link

Function association error on 2 class with the same name #318

Open ghost opened 7 years ago

ghost commented 7 years ago

Platform : darwin VSCode Version : 1.12.2 Crane Version : 0.3.6

At the beginning of my code I use 2 class with the same name

use Foo\Tool as FooBar; use Bar\Tool;

If I use the static function of the class Bar\Tool by doing Tool::XXX I have only the functions of the FooTool class that appears while I should have the Bar\Tool function. I do not have this problem if I do:

use Foo\Tool as FooTool; use Bar\Tool as BarTool;