My PhpStorm can't find the method of an singleton class when I direct call it.
this works:
$db = Database::getInstance();
/** @var Database $db */
$this->db = $db->getDatabase(IMS_DB);
this not
/** @var Database Database::getInstance */
$this->db = Database::getInstance()->getDatabase(IMS_DB);
It says cannot find method getDatabase.
Any Ideas?

$dbvariable). If you need typehint return type ofDatabase::getInstance()then it has to be done in thatDatabaseclass.