From 42c386f4f98ce1f38a08205640b2190b661b7d19 Mon Sep 17 00:00:00 2001 From: H01001000 Date: Sun, 14 Dec 2025 12:57:50 -0800 Subject: [PATCH] fix: update parameter name for backward compatibility in instant_remote_process --- bootstrap/helpers/remoteProcess.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bootstrap/helpers/remoteProcess.php b/bootstrap/helpers/remoteProcess.php index 117d19d2a..0c1fecc64 100644 --- a/bootstrap/helpers/remoteProcess.php +++ b/bootstrap/helpers/remoteProcess.php @@ -120,14 +120,15 @@ function instant_remote_process_with_timeout(Collection|array $command, Server $ function instant_remote_process( Collection|array $command, - Server|Collection|array $servers, + Server|Collection|array $server, bool $throwError = true, bool $no_sudo = false, ?int $timeout = null, bool $disableMultiplexing = false ): string|array|null { $command = $command instanceof Collection ? $command->toArray() : $command; - $servers = $servers instanceof Collection ? $servers : collect(is_array($servers) ? $servers : [$servers]); + // Use the variable server instead of servers for backward compatibility + $servers = $server instanceof Collection ? $server : collect(is_array($server) ? $server : [$server]); return \App\Helpers\SshRetryHandler::retry( function () use ($servers, $command, $no_sudo, $timeout, $disableMultiplexing) {