Skip to content

Commit fd4ad5f

Browse files
authored
Merge pull request #219 from d0x7/develop
Replace parse_query with Query::parse because it's deprecated
2 parents 84f79f1 + 9c4cdd8 commit fd4ad5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Pagination.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace bunq\Http;
33

44
use bunq\Exception\BunqException;
5-
use function GuzzleHttp\Psr7\parse_query;
5+
use GuzzleHttp\Psr7\Query;
66

77
/**
88
*/
@@ -123,7 +123,7 @@ private static function updatePaginationBodyIdFieldFromResponseField(
123123

124124
if (!is_null($url)) {
125125
$urlQuery = parse_url($url, PHP_URL_QUERY);
126-
$parameters = parse_query($urlQuery);
126+
$parameters = Query::parse($urlQuery);
127127
$paginationBody[$idField] = $parameters[$responseParam];
128128

129129
if (isset($parameters[self::PARAM_COUNT]) && !isset($paginationBody[self::PARAM_COUNT])) {

0 commit comments

Comments
 (0)