phpstorm can not find PEAR/MDB2 fucntions
in my project i have database class and in constructor i have assigned mdb2 to $database.
$this->database = &MDB2::factory($dsn);
$string = $this->database->escape($string);
$res = $this->database->query($sql);
PEAR is included in path. project working fine but IDE is complaining about undefined method. how to resolve that as i cannot go to declaration using CTRL+B.
should i repor it as issue?
thanks
Please sign in to leave a comment.
Have you added pear folder to the project? Settings->Directories page -> Add content root button.