1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

Switching Guzzle build_query to Query::build

After Guzzle 7.2, GuzzleHttp\Psr7\build_query has been replaced by GuzzleHttp\Psr7\Query::build
cf https://github.com/guzzle/guzzle/pull/2712 & https://github.com/guzzle/psr7/pull/345

Signed-off-by: Germain Carré git@germain.sh
This commit is contained in:
Germain Carré 2022-01-29 05:03:07 +01:00
parent 75852ad0fe
commit 0bfca7b318

View File

@ -263,7 +263,7 @@ class Api
} }
} }
$query = \GuzzleHttp\Psr7\build_query($query); $query = \GuzzleHttp\Psr7\Query::build($query);
$url = $request->getUri()->withQuery($query); $url = $request->getUri()->withQuery($query);
$request = $request->withUri($url); $request = $request->withUri($url);