From 657a8a7cb5454a681c9bb95618a03861837b2de5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 23 Jun 2022 17:26:31 +0200 Subject: [PATCH] Changes: - documented null value - two ' to much! --- src/Util/Network.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Util/Network.php b/src/Util/Network.php index ad83aa018e..2cad22acf8 100644 --- a/src/Util/Network.php +++ b/src/Util/Network.php @@ -440,7 +440,7 @@ class Network * Glue url parts together * * @param array $parsed URL parts - * @return string The glued URL. + * @return string|null The glued URL or null on error * @deprecated since version 2021.12, use GuzzleHttp\Psr7\Uri::fromParts($parts) instead */ public static function unparseURL(array $parsed): string @@ -456,9 +456,9 @@ class Network $scheme = $get('scheme'); $query = $get('query'); $fragment = $get('fragment'); - $authority = ($userinfo !== null ? $userinfo.'@' : '') . + $authority = ($userinfo !== null ? $userinfo . '@' : '') . $get('host') . - ($port ? ':$port' : ''); + ($port ? ":$port" : ''); return (strlen($scheme) ? $scheme . ':' : '') . (strlen($authority) ? '//' . $authority : '') . -- 2.39.5