forked from Wavyzz/dolibarr
Qual: Fix typing hints for DoliDB (#27484)
# Qual: Fix typing hints for DoliDB This should help the static tools for type and method checking.
This commit is contained in:
@@ -250,8 +250,8 @@ function getDoliDBInstance($type, $host, $user, $pass, $name, $port)
|
||||
require_once DOL_DOCUMENT_ROOT."/core/db/".$type.'.class.php';
|
||||
|
||||
$class = 'DoliDB'.ucfirst($type);
|
||||
$dolidb = new $class($type, $host, $user, $pass, $name, $port);
|
||||
return $dolidb;
|
||||
$DoliDB = new $class($type, $host, $user, $pass, $name, $port);
|
||||
return $DoliDB;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user