From f274cb0d4b4e27d9ffea4d1d986fef452e567f0d Mon Sep 17 00:00:00 2001 From: Beta Soft Date: Tue, 28 Jul 2020 16:11:27 +0800 Subject: [PATCH] PHP 7.4 implode compatibility fix Signed-off-by: Beta Soft --- app/Utils/Helper.php | 0 app/Utils/QuantumultX.php | 4 ++-- app/Utils/Surge.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 app/Utils/Helper.php diff --git a/app/Utils/Helper.php b/app/Utils/Helper.php old mode 100755 new mode 100644 diff --git a/app/Utils/QuantumultX.php b/app/Utils/QuantumultX.php index 53f22bb9..e3c0b6af 100644 --- a/app/Utils/QuantumultX.php +++ b/app/Utils/QuantumultX.php @@ -43,7 +43,7 @@ class QuantumultX } } - $uri = implode($config, ','); + $uri = implode(',', $config); $uri .= "\r\n"; return $uri; } @@ -61,7 +61,7 @@ class QuantumultX "tag={$server->name}" ]; $config = array_filter($config); - $uri = implode($config, ','); + $uri = implode(',', $config); $uri .= "\r\n"; return $uri; } diff --git a/app/Utils/Surge.php b/app/Utils/Surge.php index 5f8e6570..18bb6592 100644 --- a/app/Utils/Surge.php +++ b/app/Utils/Surge.php @@ -39,7 +39,7 @@ class Surge "tfo=true" ]; $config = array_filter($config); - $uri = implode($config, ','); + $uri = implode(',', $config); $uri .= "\r\n"; return $uri; }