Skip to content

Commit

Permalink
qual: phpstan for htdocs/loan/class/loanschedule.class.php (Dolibarr#…
Browse files Browse the repository at this point in the history
…28119)

* qual: phpstan for htdocs/loan/class/loanschedule.class.php

htdocs/loan/class/loanschedule.class.php	308	Property LoanSchedule::$num_payment (int) does not accept string.
htdocs/loan/class/loanschedule.class.php	317	Property LoanSchedule::$fk_bank (int) does not accept string.

* $num_payment is a string, not an int
  • Loading branch information
thibdrev authored Feb 12, 2024
1 parent 49ba213 commit 9e250ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/loan/class/loanschedule.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function update($user = 0, $notrigger = 0)
$this->note_public = trim($this->note_public);
}
if (isset($this->fk_bank)) {
$this->fk_bank = trim($this->fk_bank);
$this->fk_bank = (int) $this->fk_bank;
}
if (isset($this->fk_payment_loan)) {
$this->fk_payment_loan = (int) $this->fk_payment_loan;
Expand Down

0 comments on commit 9e250ae

Please sign in to comment.