Constants in path names not working since path

Since applying the 2016.1.1 patch, PHPStorm seems to be unable to resolve path names stored in constants.

So I can declare my path:

define("TEST_PATH", __DIR__ . "/test");

And PHPStorm will correctly autocomplete the "/test" folder part, not a problem, so it appears OK here. But, on the very next line, a require_once using this constant won't work and I'll get a "Path ... Not Found" message:

require_once(TEST_PATH . "/test.php");

If I try autocomplete the "/test.php" part, I get a "no suggestions" popup. Any ideas?

Cheers, Ben.

2 comments
Comment actions Permalink

Hello,

We have this issue opened here: <https://youtrack.jetbrains.com/issue/WI-31754>. Please vote for it in order to move it up in the queue and receive notifications regarding the progress of the feature. See more information on working with tracker at <https://intellij-support.jetbrains.com/entries/23368682>.

0
Comment actions Permalink

Thanks Vladimir, I've voted & commented :)

0

Please sign in to leave a comment.