From 2c8d30c646d791da5931115f69234316b507432e Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 30 May 2025 13:35:30 +0200 Subject: [PATCH] refactor(service-management): update stopContainersInParallel method to enforce Server type hint for improved type safety --- app/Actions/Service/StopService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Actions/Service/StopService.php b/app/Actions/Service/StopService.php index 4debb63c4..0dbdbb37d 100644 --- a/app/Actions/Service/StopService.php +++ b/app/Actions/Service/StopService.php @@ -4,6 +4,7 @@ namespace App\Actions\Service; use App\Actions\Server\CleanupDocker; use App\Events\ServiceStatusChanged; +use App\Models\Server; use App\Models\Service; use Lorisleiva\Actions\Concerns\AsAction; @@ -48,7 +49,7 @@ class StopService } } - private function stopContainersInParallel(array $containersToStop, $server): void + private function stopContainersInParallel(array $containersToStop, Server $server): void { $timeout = count($containersToStop) > 5 ? 10 : 30; $commands = [];