From 65760f9e8ccb1b416816d6d01defdeb4a2ee4e5d Mon Sep 17 00:00:00 2001 From: denisdulici Date: Tue, 5 Dec 2017 18:37:51 +0300 Subject: [PATCH] convert to integer --- app/Console/Commands/BillReminder.php | 4 +++- app/Console/Commands/InvoiceReminder.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/BillReminder.php b/app/Console/Commands/BillReminder.php index 7618c389f..e06564896 100644 --- a/app/Console/Commands/BillReminder.php +++ b/app/Console/Commands/BillReminder.php @@ -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); } } } diff --git a/app/Console/Commands/InvoiceReminder.php b/app/Console/Commands/InvoiceReminder.php index f1cc21098..c0f342289 100644 --- a/app/Console/Commands/InvoiceReminder.php +++ b/app/Console/Commands/InvoiceReminder.php @@ -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); } } }