I have a PHP config file which contains credentials for my database. e.G.
const DB_URL = "my.url.com";
const DB_PORT = 1234;
const DB_NAME = "myDB";
This file is of course not part of the application folder but on an other path which is not accessible by the Webserver.
Now I include this file in my application
When I now open a connection to the database like
$con = new PDO("mysql:host=" . DB_URL . ";port=" . DB_PORT . ";dbname=".DB_NAME, ....
Intelliji is not able to recognize the constants and I get a warning.
Is there any way to tell Intelliji where to find the constants or must I live with suppressing the warnings?