TypeError thrown

Return value of CH_Lib\PDO_Factory::getConnection() must be an instance of PDO, null returned