From 4fa0c581c8358a2a720961658a8bef1582f6753f Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 11 Nov 2025 15:30:10 +0100 Subject: [PATCH] fix(ScheduledTask): change timeout property type to int for consistency in syncData method --- app/Livewire/Project/Shared/ScheduledTask/Show.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Project/Shared/ScheduledTask/Show.php b/app/Livewire/Project/Shared/ScheduledTask/Show.php index 920a0efe5..088de0a76 100644 --- a/app/Livewire/Project/Shared/ScheduledTask/Show.php +++ b/app/Livewire/Project/Shared/ScheduledTask/Show.php @@ -41,7 +41,7 @@ class Show extends Component public ?string $container = null; #[Validate(['integer', 'required', 'min:60', 'max:3600'])] - public int $timeout = 300; + public $timeout = 300; #[Locked] public ?string $application_uuid; @@ -102,7 +102,7 @@ public function syncData(bool $toModel = false) $this->task->command = str($this->command)->trim()->value(); $this->task->frequency = str($this->frequency)->trim()->value(); $this->task->container = str($this->container)->trim()->value(); - $this->task->timeout = $this->timeout; + $this->task->timeout = (int) $this->timeout; $this->task->save(); } else { $this->isEnabled = $this->task->enabled;