forked from Wavyzz/dolibarr
Qual: Phan fixes (mainly Initial type cannot be inferred) in popular changed classes (#30604)
* Update setValueFrom $id type to include null * Only 2 arguments for ModeleNumRefMembers::getToolTip * Fix PhanTypeConversionFromArray * Only 6 args for PaymentSalary::addPaymentToBank * Fix typing hints (array -> string) * Fix uninitialized variables * Add cssview to attributes phpdoc * Avoid double typing specification (Phan notice) * Qual: Ensure variable is defined (phan) * Ensure phpdoc typing for verif method * Ensure phpdoc typing for getNextValue method * Add status as data key in cols array * Ensure preg_replace operates on string (phan) * Correct type for desiredstock * Fix typing with casts (phan) * Fix check that notification already exists * Initialise fk_parent_id to fix typing issue * Qual: Fix phan notices for Societe & related * Qual: Fix typing for Facture and related * Qual: Fix typing for Product & related * Update baseline * Fix new phpstan notices
This commit is contained in:
@@ -843,8 +843,8 @@ abstract class CommonObject
|
||||
public $cond_reglement_supplier_id;
|
||||
|
||||
/**
|
||||
* @var float Deposit percent for payment terms.
|
||||
* Populated by setPaymentTerms().
|
||||
* @var float|string Deposit percent for payment terms.
|
||||
* Populated by setPaymentTerms().
|
||||
* @see setPaymentTerms()
|
||||
*/
|
||||
public $deposit_percent;
|
||||
@@ -2160,13 +2160,13 @@ abstract class CommonObject
|
||||
* Setter generic. Update a specific field into database.
|
||||
* Warning: Trigger is run only if param trigkey is provided.
|
||||
*
|
||||
* @param string $field Field to update
|
||||
* @param mixed $value New value
|
||||
* @param string $table To force other table element or element line (should not be used)
|
||||
* @param int $id To force other object id (should not be used)
|
||||
* @param string $format Data format ('text', 'int', 'date'). 'text' is used if not defined
|
||||
* @param string $id_field To force rowid field name. 'rowid' is used if not defined
|
||||
* @param User|string $fuser Update the user of last update field with this user. If not provided, current user is used except if value is 'none'
|
||||
* @param string $field Field to update
|
||||
* @param mixed $value New value
|
||||
* @param string $table To force other table element or element line (should not be used)
|
||||
* @param ?int $id To force other object id (should not be used)
|
||||
* @param string $format Data format ('text', 'int', 'date'). 'text' is used if not defined
|
||||
* @param string $id_field To force rowid field name. 'rowid' is used if not defined
|
||||
* @param User|string|null $fuser Update the user of last update field with this user. If not provided, current user is used except if value is 'none'
|
||||
* @param string $trigkey Trigger key to run (in most cases something like 'XXX_MODIFY')
|
||||
* @param string $fk_user_field Name of field to save user id making change
|
||||
* @return int<-2,1> Return integer <0 if KO, >0 if OK
|
||||
|
||||
Reference in New Issue
Block a user