qual: phpdoc for htdocs/core/db/mysqli.class.php (#28703)

PHPDoc update to reflect what the code does today.

This update however doesn't solve this PHPStan warning:
htdocs/core/db/mysqli.class.php	243	Return type (mysqli|null) of method DoliDBMysqli::connect() should be compatible with return type (resource) of method Database::connect()
This commit is contained in:
thibdrev 2024-03-08 12:10:09 +01:00 committed by GitHub
parent 231703e5d1
commit cc5366249a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,12 +232,12 @@ class DoliDBMysqli extends DoliDB
/**
* Connect to server
*
* @param string $host Database server host
* @param string $login Login
* @param string $passwd Password
* @param string $name Name of database (not used for mysql, used for pgsql)
* @param integer $port Port of database server
* @return mysqli|null Database access object
* @param string $host Database server host
* @param string $login Login
* @param string $passwd Password
* @param string $name Name of database (not used for mysql, used for pgsql)
* @param integer $port Port of database server
* @return mysqli|mysqliDoli|false Database access object
* @see close()
*/
public function connect($host, $login, $passwd, $name, $port = 0)