Skip to content

Commit

Permalink
convert to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Dec 5, 2017
1 parent 3a6f51c commit 65760f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/Console/Commands/BillReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public function handle()
$days = explode(',', $company->schedule_bill_days);

foreach ($days as $day) {
$this->remind(trim($day), $company);
$day = (int) trim($day);

$this->remind($day, $company);
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion app/Console/Commands/InvoiceReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public function handle()
$days = explode(',', $company->schedule_invoice_days);

foreach ($days as $day) {
$this->remind(trim($day), $company);
$day = (int) trim($day);

$this->remind($day, $company);
}
}
}
Expand Down

0 comments on commit 65760f9

Please sign in to comment.