convert to integer

This commit is contained in:
denisdulici 2017-12-05 18:37:51 +03:00
parent 3a6f51cd87
commit 65760f9e8c
2 changed files with 6 additions and 2 deletions

View File

@ -52,7 +52,9 @@ class BillReminder extends Command
$days = explode(',', $company->schedule_bill_days);
foreach ($days as $day) {
$this->remind(trim($day), $company);
$day = (int) trim($day);
$this->remind($day, $company);
}
}
}

View File

@ -52,7 +52,9 @@ class InvoiceReminder extends Command
$days = explode(',', $company->schedule_invoice_days);
foreach ($days as $day) {
$this->remind(trim($day), $company);
$day = (int) trim($day);
$this->remind($day, $company);
}
}
}