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:
parent
d425938000
commit
9dbfb1de46
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue