How to fix wrong "unused function" warning?

Hey,
I have a problem with a wrong "unused function" warning, which is displayed in IntelliJ, although the function is used within another .php file.

This is the dashboard.js file, which is imported to the dashboard.php file:

And this is the proof that the file is actually imported:

Here is the dashboard.php file, which clearly uses the method (IntelliJ can even find it with STRG+Mouse):

I think it might even be because I use it within the PHP code or within the echo method.

(Seems like a moderator moved my post to the WebStorm section - just wanted to say, it's IntelliJ Ultimate Edition)

Thank you for your help!

1

Please sign in to leave a comment.