Skip to content

Commit 59ad7f6

Browse files
committed
Upgrade minimum version of HTTP Library
1 parent 8362e6d commit 59ad7f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"php": ">=8.1",
3838
"ext-json": "*",
3939
"aplus/helpers": "^3.0",
40-
"aplus/http": "^5.0",
40+
"aplus/http": "^5.3",
4141
"aplus/language": "^3.0"
4242
},
4343
"require-dev": {

src/Pager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function setUrl(string | URL $currentPageUrl, array $allowedQueries = [])
261261
$currentPageUrl = $currentPageUrl instanceof URL
262262
? clone $currentPageUrl
263263
: new URL($currentPageUrl);
264-
$this->oldUrl = $currentPageUrl->getAsString();
264+
$this->oldUrl = $currentPageUrl->toString();
265265
$allowedQueries[] = $this->getQuery();
266266
$currentPageUrl->setQuery($currentPageUrl->getQuery() ?? '', $allowedQueries);
267267
$this->url = $currentPageUrl;
@@ -278,7 +278,7 @@ public function getPageUrl(?int $page) : ?string
278278
if ($page === null || $page === 0) {
279279
return null;
280280
}
281-
return $this->url->addQuery($this->getQuery(), $page)->getAsString();
281+
return $this->url->addQuery($this->getQuery(), $page)->toString();
282282
}
283283

284284
public function getCurrentPage() : int

0 commit comments

Comments
 (0)