From 9c4cdd86014013d8b9ae5c5059291786aff6e25f Mon Sep 17 00:00:00 2001 From: Dorian Date: Fri, 5 Nov 2021 17:22:25 +0100 Subject: [PATCH] Replace parse_query with Query::parse because it's deprecated --- src/Http/Pagination.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Pagination.php b/src/Http/Pagination.php index 70b84932..21c0d12e 100644 --- a/src/Http/Pagination.php +++ b/src/Http/Pagination.php @@ -2,7 +2,7 @@ namespace bunq\Http; use bunq\Exception\BunqException; -use function GuzzleHttp\Psr7\parse_query; +use GuzzleHttp\Psr7\Query; /** */ @@ -123,7 +123,7 @@ private static function updatePaginationBodyIdFieldFromResponseField( if (!is_null($url)) { $urlQuery = parse_url($url, PHP_URL_QUERY); - $parameters = parse_query($urlQuery); + $parameters = Query::parse($urlQuery); $paginationBody[$idField] = $parameters[$responseParam]; if (isset($parameters[self::PARAM_COUNT]) && !isset($paginationBody[self::PARAM_COUNT])) {