Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm can't analyse a path from a variable?

Tags:

php

phpstorm

Not so awesome picture

As you see, the first require_once gives no weak warning. The latter one does, but I don't understand why. Is there any reason why this is happening? The file exists and contains a class. If its any useful, this is the file structure:

-| Project
  -| Anomius
    - Anomius.php (This is the included file)
  -| Sites
    -| Foo
      - app.php (This is the file on the image)
like image 780
Deltanic Avatar asked Aug 30 '13 10:08

Deltanic


1 Answers

Simply disable the setting in PhpStorm which produces the warning:

In Settings search for 'unresolved include' which is under Editor > Inspections; PHP > General > Unresolved include

and uncheck the box.

like image 73
tempcke Avatar answered Sep 26 '22 04:09

tempcke