barryvdh / laravel-ide-helper

IDE Helper for Laravel
MIT License
14.17k stars 1.16k forks source link

Cannot navigate to functions when using an interface. #1379

Open ArtisanTinkerer opened 2 years ago

ArtisanTinkerer commented 2 years ago

Versions:

Question:

Should and left click take me to the function in PHPStorm.

I was hoping that this would be the case. We have repository classes which are instantiated using an interface. When I click on the functions I am going to the interface and not the class. Is this possible?


public function __construct(private ThingRepositoryInterface $thingRepository)
    {
    }

public function index(Request $request): ResourceCollection
    {
        $params = $request->safe()->all();
        $things = $this->thingRepository->getAllThings($params);
 }

So in the example above clicking on getAllThings would take me to the function, not just the stub in the interface.

Thanks,

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.