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

1 comment
Comment actions Permalink

Have you added pear folder to the project? Settings->Directories page -> Add content root button.

0

Please sign in to leave a comment.