From 4b51323518e5adcf59ab46175672f1c580f648e8 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 28 Nov 2022 15:00:28 +0100 Subject: [PATCH] Convert time constrait options to int --- src/Commands/ClearPendingTenants.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/ClearPendingTenants.php b/src/Commands/ClearPendingTenants.php index 2297dbe9..82b01cd0 100644 --- a/src/Commands/ClearPendingTenants.php +++ b/src/Commands/ClearPendingTenants.php @@ -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(" Cannot use '--older-than-days' and '--older-than-hours' together \n"); // todo@cli refactor all of these styled command outputs to use $this->components