From cc5366249af1731ad3c32f4052abfe2e8a0b4ff5 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Fri, 8 Mar 2024 12:10:09 +0100 Subject: [PATCH] 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() --- htdocs/core/db/mysqli.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index f3c0c3cce62..d07b4261ce5 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -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)