Open stolentine opened 2 years ago
I've been experiencing the same issue, but in PhpStorm. Not sure what the difference between PhpStorm and Laravel-idea is, but it looks like the generics support isn't handled for interfaces or traits. Would love it if someone could show me how.
I've been experiencing the same issue, but in PhpStorm. Not sure what the difference between PhpStorm and Laravel-idea is, but it looks like the generics support isn't handled for interfaces or traits. Would love it if someone could show me how.
If the Laravel Idea is disabled, then PhpStorm determines the type normally.
Bug description
phpstorm recently added support for generics in the dock. If you enable the plugin and paste this code into one file, then ide normally determines and highlights testMethod()
The problem is not tracked if the project has few files and namespaces. But on my working project, where the number of classes is more than 10k and there is a sixfold nesting of namespaces, this feature stops working.
If you disable the plugin, the problem ceases to manifest itself and the method begins to be determined. Also, the problem sometimes disappears if you change the namesapace of the class in which $this->factory->create(Test::class)->testMethod(); is called; to some non-existent and having less than 3 nestings, for example, namespace Foo\Baz\Bar;
Plugin version
5.0.0.213
Operating system
Linux
Steps to reproduce
Take a big project. In it, in different namespaces, create the three classes described above. Check the correctness of testMethod() definition
screen recording
Relevant log output