mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:14:03 +00:00
Convert time constrait options to int
This commit is contained in:
parent
16ab7e0435
commit
4b51323518
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ class ClearPendingTenants extends Command
|
|||
// We compare the original expiration date to the new one to check if the new one is different later
|
||||
$originalExpirationDate = $expirationDate->copy()->toImmutable();
|
||||
|
||||
$olderThanDays = $this->option('older-than-days');
|
||||
$olderThanHours = $this->option('older-than-hours');
|
||||
$olderThanDays = (int) $this->option('older-than-days');
|
||||
$olderThanHours = (int) $this->option('older-than-hours');
|
||||
|
||||
if ($olderThanDays && $olderThanHours) {
|
||||
$this->line("<options=bold,reverse;fg=red> Cannot use '--older-than-days' and '--older-than-hours' together \n"); // todo@cli refactor all of these styled command outputs to use $this->components
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue