plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: Phpstorm says no usages for Attribute (accessor) method - but it still finds usages when I click on "no usages"

Open cyppe opened this issue 1 year ago • 9 comments

Bug description

I am not sure if this is a phpstorm feature gone wrong or if it's laravel idea that generates helper code to jump between accessor format and method that creates the accessor.

But phpstorm says "no usages" for model accessor (Attribute), but I can still click on "no usages" and popup says 2 usages and that is correct. I can also jump from code that is fetching the accessor directly to method.

So everything works except that it's a bit annoying that method is shown as "not used" and grayed out.

But adding screenshot of my issue below.

image

Plugin version

8.1.2.233

Operating system

MacOS

Steps to reproduce

No response

Relevant log output

No response

cyppe avatar Feb 29 '24 14:02 cyppe

Try to turn on this option and reopen the file. It should help, but in some cases, it can eat a lot of CPU resources. We going to fix it in the next version, but I can't promise that.

image

adelf avatar Mar 03 '24 07:03 adelf