Browse Source

Debug v19

Laurent Destailleur 1 year ago
parent
commit
8874ef8454

+ 1 - 1
htdocs/core/db/mysqli.class.php

@@ -49,7 +49,7 @@ class DoliDBMysqli extends DoliDB
 	 *	Constructor.
 	 *	This create an opened connexion to a database server and eventually to a database
 	 *
-	 *	@param      string	$type		Type of database (mysql, pgsql...)
+	 *	@param      string	$type		Type of database (mysql, pgsql...). Not used.
 	 *	@param	    string	$host		Address of database server
 	 *	@param	    string	$user		Name of database user
 	 *	@param	    string	$pass		Password of database user

+ 1 - 1
htdocs/core/db/pgsql.class.php

@@ -69,7 +69,7 @@ class DoliDBPgsql extends DoliDB
 	 *	Constructor.
 	 *	This create an opened connexion to a database server and eventually to a database
 	 *
-	 *	@param      string	$type		Type of database (mysql, pgsql...)
+	 *	@param      string	$type		Type of database (mysql, pgsql...). Not used.
 	 *	@param	    string	$host		Address of database server
 	 *	@param	    string	$user		Nom de l'utilisateur autorise
 	 *	@param	    string	$pass		Mot de passe

+ 1 - 1
htdocs/core/db/sqlite3.class.php

@@ -53,7 +53,7 @@ class DoliDBSqlite3 extends DoliDB
 	 *  Constructor.
 	 *  This create an opened connexion to a database server and eventually to a database
 	 *
-	 *  @param      string	$type		Type of database (mysql, pgsql...)
+	 *  @param      string	$type		Type of database (mysql, pgsql...). Not used.
 	 *  @param	    string	$host		Address of database server
 	 *  @param	    string	$user		Nom de l'utilisateur autorise
 	 *  @param	    string	$pass		Mot de passe

+ 4 - 3
phpstan.neon

@@ -50,27 +50,28 @@ parameters:
 		- '#Undefined variable: \$errors#'
 		- '#Undefined variable: \$form#'
 		- '#has an unused parameter \$param#'
-		- '#Result of function fieldList#'
-		- '#Caught class Stripe#'
 		- '#Function llxHeader invoked with#'
 		- '#Function llxHeaderVierge invoked with#'
 		- '#Function llxFooter invoked with#'
 		- '#Function llxFooterVierge invoked with#'
 		- '#If condition is always true#'
 		- '#always exists and is not falsy#'
-		- '#has no return type specified#'
 		- '#is always true#'
 		- '#is always fal#'
+		- '#has no return type specified#'
 		- '#always exists and is not nullable#'
 		- '#PHPDoc tag @return has invalid value#'
 		- '#type has no value type specified in iterable type array#'
 		- '#with no value type specified in iterable type array#'
 		- '#Empty array passed to foreach#'
+		- '#Result of function fieldList#'
 		- '#in isset\(\) is not nullable#'
 		- '#in isset\(\) is never defined#'
 		- '#(\$force_dolibarr_lib|\$dolibarr_main_db).*in empty\(\) is never defined.#'
+		- '#Caught class Stripe#'
 		- '#Sprain\\SwissQrBill\\#'
 		- '#Constructor of class DolEditor has an unused parameter \$toolbarlocation#'
+		- '#Constructor of class DoliDB\w+ has an unused parameter $type#'
 	internalErrorsCountLimit: 50
 	cache:
 	    nodesByFileCountMax: 512