phpstan-src
phpstan-src copied to clipboard
Implement locateIdentifiersByType for OptimizedSingleFileSourceLocator
Followup to #1080
@ondrejmirtes I kind of extrapolated from https://github.com/phpstan/phpstan-src/pull/1080#issuecomment-1072411687. It felt weird that if I'm looking in directory constants are not located, but when I look at single file, they are.
I just want locateIdentifier() and locateIdentifiersByType() to be consistent in each locator.
I took it over the finish line, thanks.