pdt
pdt copied to clipboard
"Find references" feature for a given class or interface finds classes with the same local name but a different FQDN
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.