qual: phpstan for htdocs/compta/bank/class/paymentvarious.class.php (#28114)

htdocs/compta/bank/class/paymentvarious.class.php	241	Property PaymentVarious::$amount (float) does not accept string.

htdocs/compta/bank/class/paymentvarious.class.php	459	Property PaymentVarious::$amount (float) does not accept string.
This commit is contained in:
thibdrev 2024-02-12 02:11:28 +01:00 committed by GitHub
parent d425938000
commit 9dbfb1de46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -238,7 +238,7 @@ class PaymentVarious extends CommonObject
$error = 0;
// Clean parameters
$this->amount = trim($this->amount);
$this->amount = (float) price2num($this->amount);
$this->label = trim($this->label);
$this->note = trim($this->note);
$this->fk_bank = (int) $this->fk_bank;
@ -456,7 +456,7 @@ class PaymentVarious extends CommonObject
$now = dol_now();
// Clean parameters
$this->amount = price2num(trim($this->amount));
$this->amount = (float) price2num($this->amount);
$this->label = trim($this->label);
$this->note = trim($this->note);
$this->fk_bank = (int) $this->fk_bank;