Merge pull request #27934 from thibdrev/patch-4

qual: phpstan for htdocs/don/class/paymentdonation.class.php
This commit is contained in:
Laurent Destailleur 2024-02-01 11:01:01 +01:00 committed by GitHub
commit f72ff74d28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -201,7 +201,7 @@ class PaymentDonation extends CommonObject
$resql = $this->db->query($sql);
if ($resql) {
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."payment_donation");
$this->ref = $this->id;
$this->ref = (string) $this->id;
} else {
$error++;
}
@ -544,7 +544,7 @@ class PaymentDonation extends CommonObject
{
$this->id = 0;
$this->fk_donation = '';
$this->fk_donation = 0;
$this->datec = '';
$this->tms = '';
$this->datep = '';
@ -553,9 +553,9 @@ class PaymentDonation extends CommonObject
$this->paymenttype = '';
$this->num_payment = '';
$this->note_public = '';
$this->fk_bank = '';
$this->fk_user_creat = '';
$this->fk_user_modif = '';
$this->fk_bank = 0;
$this->fk_user_creat = dol_now();
$this->fk_user_modif = dol_now();
}