Skip to content

Commit 13ea2c8

Browse files
author
DugunBot
committed
update deprecated
1 parent 7f0cd4e commit 13ea2c8

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Authentication/OAuth2Client.php

Lines changed: 1 addition & 1 deletion
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, arg_separator: $separator);
142142
}
143143

144144
/**

src/Helper/RedirectLoginHelper.php

Lines changed: 1 addition & 1 deletion
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, arg_separator: $separator);
153153
}
154154

155155
/**

src/Http/RequestBodyMultipart.php

Lines changed: 1 addition & 1 deletion
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, arg_separator: '&');
145145
$params = explode('&', $query);
146146
$result = [];
147147

src/Http/RequestBodyUrlEncoded.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public function __construct(array $params)
4545
*/
4646
public function getBody()
4747
{
48-
return http_build_query($this->params, '', '&');
48+
return http_build_query($this->params, arg_separator: '&');
4949
}
5050
}

src/Url/UrlManipulator.php

Lines changed: 3 additions & 3 deletions
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, arg_separator: '&');
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, arg_separator: '&');
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, arg_separator: '&');
9393
}
9494

9595
/**

0 commit comments

Comments
 (0)