'Can't resolve target of expression' with some variable in the path

require_once $_SERVER["SOME_VAR"] . "/api/some.php";

Can't resolve target of expression '$_SERVER["SOME_VAR"] . "/api/some.php"'
Path 'api' not found

'api' dir located in root folder of project, and $_SERVER["SOME_VAR"] defines where root folder is located
Is there are a way to avoid this warning message?

1 comment
Comment actions Permalink

Hello Andrey,

At the moment the only way to avoid message is to disable "Unresolved include" inspection.
Please vote - http://youtrack.jetbrains.net/issue/WI-3321

Thank you for feedback!

Please sign in to leave a comment.