plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: the number of times the method is used is not counted

Open alexrififi opened this issue 4 months ago • 3 comments

Bug description

Hi all!

Laravel version 10.48.29

I added a method to the standard user model

    public function projectIds(): Collection
    {
        return $this->projects()->pluck('projects.id');
    }

This method is used in 7 different places.

Without Laravel Idea it looks like this (correct) Image

After "Generate Helper Code" it looks like this Image that is, it is as if the method is not used anywhere.

And if I click on no usages - it will show 7 usages. Why? 🥺

The following is also not very convenient. There is no inheritance in fact. Image

Plugin version

11.3.0.252

Operating system

Windows

Steps to reproduce

No response

Relevant log output


alexrififi avatar Sep 01 '25 19:09 alexrififi

We are also experiencing this on both Mac & Windows systems running Laravel IDEA.

My Install details: PhpStorm 2025.2 Build #PS-252.23892.419, built on August 2, 2025 Runtime version: 21.0.7+6-b1038.58 amd64 (JCEF 122.1.9) VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

After generating showing overrides (the helper code file) and no usages... Image

CamKem avatar Sep 18 '25 01:09 CamKem

@adelf - is this still the appropriate place to report such issues, or do we do it via YouTrack now that PhpStorm/Jetbrains has acquired the plugin?

CamKem avatar Sep 18 '25 01:09 CamKem

Hi, @CamKem. JetBrains hasn't acquired the plugin. It's a bit different. We are still deciding how our integration will work.

Please continue to post bugs/feature requests here. About your issue: yes, we don't support Find Usages for trait methods yet. I'll add this to our internal bug tracker.

@alexrififi, I'll check your issue soon. Thank you.

adelf avatar Sep 21 '25 06:09 adelf