PHP 7.4 implode compatibility fix

Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
Beta Soft 2020-07-28 16:11:27 +08:00
parent 0486f4e6ac
commit f274cb0d4b
No known key found for this signature in database
GPG Key ID: 180A31AB98D5C156
3 changed files with 3 additions and 3 deletions

0
app/Utils/Helper.php Executable file → Normal file
View File

View File

@ -43,7 +43,7 @@ class QuantumultX
} }
} }
$uri = implode($config, ','); $uri = implode(',', $config);
$uri .= "\r\n"; $uri .= "\r\n";
return $uri; return $uri;
} }
@ -61,7 +61,7 @@ class QuantumultX
"tag={$server->name}" "tag={$server->name}"
]; ];
$config = array_filter($config); $config = array_filter($config);
$uri = implode($config, ','); $uri = implode(',', $config);
$uri .= "\r\n"; $uri .= "\r\n";
return $uri; return $uri;
} }

View File

@ -39,7 +39,7 @@ class Surge
"tfo=true" "tfo=true"
]; ];
$config = array_filter($config); $config = array_filter($config);
$uri = implode($config, ','); $uri = implode(',', $config);
$uri .= "\r\n"; $uri .= "\r\n";
return $uri; return $uri;
} }