Skip to content

Commit

Permalink
Drop support for league/uri 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Jan 15, 2025
1 parent 6793505 commit 1572c2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"amphp/sync": "^2",
"revolt/event-loop": "^1",
"psr/log": "^1|^2|^3",
"league/uri": "^6.5|^7"
"league/uri": "^7"
},
"require-dev": {
"amphp/phpunit-util": "^3",
Expand Down
4 changes: 1 addition & 3 deletions src/RedisConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ public function withDatabase(int $database): self
private function applyUri(string $uri): void
{
try {
// Upgrade to new API before supporting league/uri 8.x
/** @psalm-suppress DeprecatedMethod */
$uri = Uri::createFromString($uri);
$uri = Uri::new($uri);
} catch (\Exception) {
throw new RedisException('Invalid redis configuration URI: ' . $uri);
}
Expand Down

0 comments on commit 1572c2f

Please sign in to comment.