Seeing 2 comments for a funciton
When I reference a method, I often see two comments that are identical for it:
It seems though that function has only one signature:
Am I misunderstanding what I'm seeing, or is there a way to turn off the 2nd hint?
Please sign in to leave a comment.
Hi there,
What is the source (full file path) for both of them?
Just use the function as on your first screenshot and then Ctrl+Click on it -- if there are more than 1 definition then PhpStorm will offer a popup with the targets. Get to each of them and see what the difference might be.
If they both point to the same place -- it could be something wrong with your IDE setting/setting.
P.S. The Source path on your second screenshot looks odd. No clue where it may be coming from. Looks like some plugin or a linter-like tool (that may include own copy of PhpStorm stubs).
Thanks Andriy.
Your repair suggestion fixed both the duplicate messages and the source path!