You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @bart-oski, we added support for PHP code intelligence in the release version 5.2, so coming from 5.1 this is the first version where you're seeing all this checks. You can read more about PHP code intelligence here.
Now coming to your issue, I checked this on our end and it's not actually related to __DIR__. The PHP code intelligence finds functions by looking at the PHP files inside the folder you have opened as the project, it doesn't follow the require path itself. Since ../inc/functions.php is one folder up, if inc is outside the folder you opened, those functions look "undefined" to it. The warnings most likely went away after your edit because you had functions.php open in a tab at that time (open files are also picked up), not because of the change itself.
For now, open the parent folder (the one that contains both inc and your other files) as the project and the warnings should go away. Or alternatively, if you want you can also turn this PHP code intelligence feature. Refer to the doc linked above to read on how to disable it.
Activity
devvaannsh commentedon Oct 30, 2026
Hey @bart-oski, we added support for PHP code intelligence in the release version 5.2, so coming from 5.1 this is the first version where you're seeing all this checks. You can read more about PHP code intelligence here.
Now coming to your issue, I checked this on our end and it's not actually related to
__DIR__. The PHP code intelligence finds functions by looking at the PHP files inside the folder you have opened as the project, it doesn't follow therequirepath itself. Since../inc/functions.phpis one folder up, ifincis outside the folder you opened, those functions look "undefined" to it. The warnings most likely went away after your edit because you hadfunctions.phpopen in a tab at that time (open files are also picked up), not because of the change itself.For now, open the parent folder (the one that contains both
incand your other files) as the project and the warnings should go away. Or alternatively, if you want you can also turn this PHP code intelligence feature. Refer to the doc linked above to read on how to disable it.Hope this helps! Also, we suggest raising issues here in this repo.