Skip to content

Commit 6164f88

Browse files
authored
Merge pull request #8 from NikitaMelikhov/6.x
2 parents f50f758 + c0757da commit 6164f88

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Authentication/OAuth2Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function getAuthorizationUrl($redirectUrl, $state, array $scope = [], arr
138138
'scope' => implode(',', $scope),
139139
];
140140

141-
return static::BASE_AUTHORIZATION_URL.'/'.$this->graphVersion.'/dialog/oauth?'.http_build_query($params, null, $separator);
141+
return static::BASE_AUTHORIZATION_URL.'/'.$this->graphVersion.'/dialog/oauth?'.http_build_query($params, '', $separator);
142142
}
143143

144144
/**

src/Helper/RedirectLoginHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function getLogoutUrl($accessToken, $next, $separator = '&')
149149
'access_token' => $accessToken->getValue(),
150150
];
151151

152-
return 'https://www.facebook.com/logout.php?'.http_build_query($params, null, $separator);
152+
return 'https://www.facebook.com/logout.php?'.http_build_query($params, '', $separator);
153153
}
154154

155155
/**

src/Http/RequestBodyMultipart.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function getParamString($name, $value)
141141
*/
142142
private function getNestedParams(array $params)
143143
{
144-
$query = http_build_query($params, null, '&');
144+
$query = http_build_query($params, '', '&');
145145
$params = explode('&', $query);
146146
$result = [];
147147

src/Url/UrlManipulator.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static function removeParamsFromUrl($url, array $paramsToFilter)
4848
}
4949

5050
if (count($params) > 0) {
51-
$query = '?'.http_build_query($params, null, '&');
51+
$query = '?'.http_build_query($params, '', '&');
5252
}
5353
}
5454

@@ -76,7 +76,7 @@ public static function appendParamsToUrl($url, array $newParams = [])
7676
}
7777

7878
if (strpos($url, '?') === false) {
79-
return $url.'?'.http_build_query($newParams, null, '&');
79+
return $url.'?'.http_build_query($newParams, '', '&');
8080
}
8181

8282
list($path, $query) = explode('?', $url, 2);
@@ -89,7 +89,7 @@ public static function appendParamsToUrl($url, array $newParams = [])
8989
// Sort for a predicable order
9090
ksort($newParams);
9191

92-
return $path.'?'.http_build_query($newParams, null, '&');
92+
return $path.'?'.http_build_query($newParams, '', '&');
9393
}
9494

9595
/**

0 commit comments

Comments
 (0)