forked from Wavyzz/dolibarr
fix phpstan (#28571)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user