Skip to content

Commit 1572c2f

Browse files
committed
Drop support for league/uri 6.x
1 parent 6793505 commit 1572c2f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"amphp/sync": "^2",
3737
"revolt/event-loop": "^1",
3838
"psr/log": "^1|^2|^3",
39-
"league/uri": "^6.5|^7"
39+
"league/uri": "^7"
4040
},
4141
"require-dev": {
4242
"amphp/phpunit-util": "^3",

src/RedisConfig.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ public function withDatabase(int $database): self
9595
private function applyUri(string $uri): void
9696
{
9797
try {
98-
// Upgrade to new API before supporting league/uri 8.x
99-
/** @psalm-suppress DeprecatedMethod */
100-
$uri = Uri::createFromString($uri);
98+
$uri = Uri::new($uri);
10199
} catch (\Exception) {
102100
throw new RedisException('Invalid redis configuration URI: ' . $uri);
103101
}

0 commit comments

Comments
 (0)