Live Inspection problem

When I use copy-paste in some variables, it is not recognized from the inspection system and it continues to show errors that don't longer exists.

I attach you an example where the variables $farebasis and $company are shown as unused (first line) and below as undefined (red mark). The only solution I have found to correct the wrong inspections, is either write the variables by hand, or restart the entire PhpStorm program.

Can you please help, or try to fix it in a future version of PhpStorm?



Attachment(s):
inspection.JPG
2 comments

Hi there,

My suggestion -- try "File | Invalidate Caches..."

If that will not help -- then you would need to provide some reproducible code example. I suggest trying your code in separate brand new project -- see if the issue will be reproduced there.

0

Please sign in to leave a comment.