Skip to content

Commit

Permalink
Upgrade minimum version of HTTP Library
Browse files Browse the repository at this point in the history
natanfelles committed Nov 23, 2022

Verified

This commit was signed with the committer’s verified signature.
natanfelles Natan Felles
1 parent 8362e6d commit 59ad7f6
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@
"php": ">=8.1",
"ext-json": "*",
"aplus/helpers": "^3.0",
"aplus/http": "^5.0",
"aplus/http": "^5.3",
"aplus/language": "^3.0"
},
"require-dev": {
4 changes: 2 additions & 2 deletions src/Pager.php
Original file line number Diff line number Diff line change
@@ -261,7 +261,7 @@ public function setUrl(string | URL $currentPageUrl, array $allowedQueries = [])
$currentPageUrl = $currentPageUrl instanceof URL
? clone $currentPageUrl
: new URL($currentPageUrl);
$this->oldUrl = $currentPageUrl->getAsString();
$this->oldUrl = $currentPageUrl->toString();
$allowedQueries[] = $this->getQuery();
$currentPageUrl->setQuery($currentPageUrl->getQuery() ?? '', $allowedQueries);
$this->url = $currentPageUrl;
@@ -278,7 +278,7 @@ public function getPageUrl(?int $page) : ?string
if ($page === null || $page === 0) {
return null;
}
return $this->url->addQuery($this->getQuery(), $page)->getAsString();
return $this->url->addQuery($this->getQuery(), $page)->toString();
}

public function getCurrentPage() : int

0 comments on commit 59ad7f6

Please sign in to comment.