2
0
forked from Wavyzz/dolibarr

fix phpstan (#28571)

This commit is contained in:
Frédéric FRANCE
2024-03-02 12:40:59 +01:00
committed by GitHub
parent 99d7b76ba9
commit b1f01b1e70

View File

@@ -451,7 +451,7 @@ class Task extends CommonObjectLine
// Clean parameters
if (isset($this->fk_project)) {
$this->fk_project = trim($this->fk_project);
$this->fk_project = (int) $this->fk_project;
}
if (isset($this->ref)) {
$this->ref = trim($this->ref);
@@ -472,7 +472,7 @@ class Task extends CommonObjectLine
$this->planned_workload = trim($this->planned_workload);
}
if (isset($this->budget_amount)) {
$this->budget_amount = trim($this->budget_amount);
$this->budget_amount = (float) $this->budget_amount;
}
if (!empty($this->date_start) && !empty($this->date_end) && $this->date_start > $this->date_end) {