Skip to content

Commit

Permalink
Merge pull request #8 from NikitaMelikhov/6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher authored Dec 21, 2023
2 parents f50f758 + c0757da commit 6164f88
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Authentication/OAuth2Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function getAuthorizationUrl($redirectUrl, $state, array $scope = [], arr
'scope' => implode(',', $scope),
];

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

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Helper/RedirectLoginHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function getLogoutUrl($accessToken, $next, $separator = '&')
'access_token' => $accessToken->getValue(),
];

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

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Http/RequestBodyMultipart.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private function getParamString($name, $value)
*/
private function getNestedParams(array $params)
{
$query = http_build_query($params, null, '&');
$query = http_build_query($params, '', '&');
$params = explode('&', $query);
$result = [];

Expand Down
6 changes: 3 additions & 3 deletions src/Url/UrlManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function removeParamsFromUrl($url, array $paramsToFilter)
}

if (count($params) > 0) {
$query = '?'.http_build_query($params, null, '&');
$query = '?'.http_build_query($params, '', '&');
}
}

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

if (strpos($url, '?') === false) {
return $url.'?'.http_build_query($newParams, null, '&');
return $url.'?'.http_build_query($newParams, '', '&');
}

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

return $path.'?'.http_build_query($newParams, null, '&');
return $path.'?'.http_build_query($newParams, '', '&');
}

/**
Expand Down

0 comments on commit 6164f88

Please sign in to comment.