From 289c3e233e2fe37d7169e72c975d241799b8acca Mon Sep 17 00:00:00 2001 From: Darshan Date: Mon, 26 Jan 2026 17:14:31 +0530 Subject: [PATCH] update: misc fixes. --- src/Appwrite/Platform/Installer/HttpHandler.php | 2 +- src/Appwrite/Platform/Installer/Server.php | 2 +- src/Appwrite/Platform/Tasks/Install.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Installer/HttpHandler.php b/src/Appwrite/Platform/Installer/HttpHandler.php index af5195e25a..eb90611110 100644 --- a/src/Appwrite/Platform/Installer/HttpHandler.php +++ b/src/Appwrite/Platform/Installer/HttpHandler.php @@ -418,7 +418,7 @@ class HttpHandler if (isset($stored[$field]) && isset($input[$field])) { $storedValue = (string) $stored[$field]; $inputValue = (string) $input[$field]; - if ($field === 'httpPort' || $field === 'httpsPort') { + if (in_array($field, ['httpPort', 'httpsPort'], true)) { $storedValue = trim($storedValue); $inputValue = trim($inputValue); } diff --git a/src/Appwrite/Platform/Installer/Server.php b/src/Appwrite/Platform/Installer/Server.php index 17473b274e..75b605d983 100644 --- a/src/Appwrite/Platform/Installer/Server.php +++ b/src/Appwrite/Platform/Installer/Server.php @@ -94,7 +94,7 @@ class Server $this->state->applyEnvConfig($cfg); $host = self::INSTALLER_WEB_HOST; - $port = (string)self::INSTALLER_WEB_PORT; + $port = (string) self::INSTALLER_WEB_PORT; $isMock = $cfg->isMock(); if (isset($opts['clean'])) { diff --git a/src/Appwrite/Platform/Tasks/Install.php b/src/Appwrite/Platform/Tasks/Install.php index 7a5370426b..10e758f45c 100644 --- a/src/Appwrite/Platform/Tasks/Install.php +++ b/src/Appwrite/Platform/Tasks/Install.php @@ -370,7 +370,7 @@ class Install extends Action return file_exists($this->path . '/' . $this->getEnvFileName()); } - private function updateProgress(?callable $progress, string $step, string $status, array $messages = [], array $details = [], ?string $messageOverride = null): void + private function updateProgress(?callable $progress, string $step, string $status, array $messages, array $details = [], ?string $messageOverride = null): void { if (!$progress) { return;