pdt icon indicating copy to clipboard operation
pdt copied to clipboard

"Find references" feature for a given class or interface finds classes with the same local name but a different FQDN

Open pounard opened this issue 3 years ago • 0 comments

It always bothered me, and I never took the time to write an issue for this, but whenever I use the "Find references" feature over a class or interface, it finds pretty much every use of it, and I'm happy. Most of the time, it's about finding business types with very specific names and that's fine.

But, today, I searched for a \MyVendor\MyApp\SomeNamespace\Reference named class, and I got literally thousands of results, most of which are in the vendor directory, because of Symfony's Symfony\Component\DependencyInjection\Reference class, but that's not the only one, I also found a few others such as phpDocumentor\Reflection\DocBlock\Tags\Reference for example.

"Find references" should search using the fully qualified type name instead.

pounard avatar May 27 '21 12:05 pounard