Skip to content

Commit

Permalink
Merge pull request #219 from d0x7/develop
Browse files Browse the repository at this point in the history
Replace parse_query with Query::parse because it's deprecated
  • Loading branch information
andrederoos authored Jun 13, 2022
2 parents 84f79f1 + 9c4cdd8 commit fd4ad5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace bunq\Http;

use bunq\Exception\BunqException;
use function GuzzleHttp\Psr7\parse_query;
use GuzzleHttp\Psr7\Query;

/**
*/
Expand Down Expand Up @@ -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])) {
Expand Down

0 comments on commit fd4ad5f

Please sign in to comment.